Collision objects without rotation
3 posters
Collision objects without rotation
Hi,
I want to have a collision object but I don't want that the collisions affect the autorotation of the object. Do you know if is it possible?
Thank you very much!
I want to have a collision object but I don't want that the collisions affect the autorotation of the object. Do you know if is it possible?
Thank you very much!
manuelmartinf- Posts : 14
Join date : 2009-09-13
Yeah, it's possible!
With bullet:
So, the rotation is fixed to axis Z
- Code:
object->_SIO2objectphysic->_btRigidBody->setAngularFactor(btVector3(0,0,1));
So, the rotation is fixed to axis Z
manuelmartinf- Posts : 14
Join date : 2009-09-13
Re: Collision objects without rotation
You can set constraints with Bullet. I dont recall the exact functions thought but if you check the Bullet docs you will find the object constraints in there.
uprise78- Posts : 228
Join date : 2008-10-31
Re: Collision objects without rotation
I tried your example angular factor (with floats 0.0, 0.0, 1.0 ) but my physic object was unconstrained on all axes. Mystery ...
cgen2- Posts : 38
Join date : 2008-12-14
Similar topics
» How to refer to collision objects
» Collision Issue and Removing Objects
» duplicating objects at runtime and changing textures on the duplicated objects
» Rotation of rolling object is zero.
» Physics out of sync with rendering rotation
» Collision Issue and Removing Objects
» duplicating objects at runtime and changing textures on the duplicated objects
» Rotation of rolling object is zero.
» Physics out of sync with rendering rotation
Permissions in this forum:
You cannot reply to topics in this forum