FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Collision objects without rotation

3 posters

Go down

Collision objects without rotation Empty Collision objects without rotation

Post  manuelmartinf 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

Back to top Go down

Collision objects without rotation Empty Yeah, it's possible!

Post  manuelmartinf 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

Back to top Go down

Collision objects without rotation Empty Re: Collision objects without rotation

Post  uprise78 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

Back to top Go down

Collision objects without rotation Empty Re: Collision objects without rotation

Post  cgen2 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

Back to top Go down

Collision objects without rotation Empty Re: Collision objects without rotation

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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