How to get Transform from Physic Object?
3 posters
How to get Transform from Physic Object?
How can i get the transformation from the Physics (RigidBody) from an Object?
clv- Posts : 6
Join date : 2009-02-01
Re: How to get Transform from Physic Object?
Bullet is controlling the object, the rigid body matrix is directly affected to the object:
_SIO2object->_SIO2transform->mat
_SIO2object->_SIO2transform->mat
Re: How to get Transform from Physic Object?
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
Re: How to get Transform from Physic Object?
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
Re: How to get Transform from Physic Object?
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?
How could i do that?
clv- Posts : 6
Join date : 2009-02-01
Re: How to get Transform from Physic Object?
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
_-MADMAN-_- Posts : 52
Join date : 2009-04-23
Re: How to get Transform from Physic Object?
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
_-MADMAN-_- Posts : 52
Join date : 2009-04-23
Re: How to get Transform from Physic Object?
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...
Similar topics
» texture transform
» Physic object
» Moving an Object before physic
» sio2ObjectDuplicate only works for Physic object ?
» _SIO2parent transform?
» Physic object
» Moving an Object before physic
» sio2ObjectDuplicate only works for Physic object ?
» _SIO2parent transform?
Permissions in this forum:
You cannot reply to topics in this forum