Collision objects without rotation

View previous topic View next topic Go down

Collision objects without rotation

Post  manuelmartinf on Mon Sep 28, 2009 10:22 am

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!

manuelmartinf

Posts : 14
Join date : 2009-09-13

View user profile

Back to top Go down

Yeah, it's possible!

Post  manuelmartinf on Mon Sep 28, 2009 2:01 pm

With bullet:

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

View user profile

Back to top Go down

Re: Collision objects without rotation

Post  uprise78 on Mon Sep 28, 2009 3:49 pm

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

View user profile

Back to top Go down

Re: Collision objects without rotation

Post  cgen2 on Tue Sep 29, 2009 5:10 am

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

View user profile

Back to top Go down

Re: Collision objects without rotation

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum