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.

How to get Transform from Physic Object?

3 posters

Go down

How to get Transform from Physic Object? Empty How to get Transform from Physic Object?

Post  clv Wed Mar 04, 2009 6:02 pm

How can i get the transformation from the Physics (RigidBody) from an Object?

clv

Posts : 6
Join date : 2009-02-01

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  sio2interactive Wed Mar 04, 2009 6:17 pm

Bullet is controlling the object, the rigid body matrix is directly affected to the object:

_SIO2object->_SIO2transform->mat
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  clv Thu Mar 05, 2009 6:21 am

Sorry, how can i get the rotation from the matrix? I saw that the rot is not updated by the physics.

clv

Posts : 6
Join date : 2009-02-01

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  sio2interactive Thu Mar 05, 2009 6:40 am

Getting the rotation from the matrix while bullet is running Is obsolete... You'd be better controling your rigid body with linear and angular velocity and extract the rotation from the linear or angular direction vector.


Last edited by sio2interactive on Sun Apr 26, 2009 4:17 pm; edited 1 time in total
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  clv Thu Mar 05, 2009 7:25 pm

The problem is that i dont want to control, i want to verify if the object has a rotation on Y axis greater that 45 degrees, for example.
How could i do that?

clv

Posts : 6
Join date : 2009-02-01

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  _-MADMAN-_ Sun Apr 26, 2009 4:10 pm

Getting the rotation from the matrix while bullet is it Is obsolete... You'd be better controling your rigid body with linear and angular velocity and extract the rotation from the linear or angular direction vector.

Sorry for offtopic - how can I extract the rotation from linear/angular vector? Newbie question, I now Smile

_-MADMAN-_

Posts : 52
Join date : 2009-04-23

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  sio2interactive Sun Apr 26, 2009 4:18 pm

can you please re-formulate your question...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  _-MADMAN-_ Sun Apr 26, 2009 5:32 pm

If We push object in sio (tutorial 9) we get direction for linear velocity from sio2->_SIO2camera...dir->x and dir->y; I want to get push direction from angular velocity of my object - otherwise push object by local axis (maybe this is the only problem?). Hope that this is more clear Smile

_-MADMAN-_

Posts : 52
Join date : 2009-04-23

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  sio2interactive Sun Apr 26, 2009 5:49 pm

in tutorial09 the object is dynamic not a rigid body, there's no rolling physic applied... I think you should really check the Bullet SDK...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to get Transform from Physic Object? Empty Re: How to get Transform from Physic Object?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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