Hi,
I need to know if some cyilnders are lying or they are right, any idea how to get this information from BEPU?
Thanks
How to know if a cylinder is lying or if it is right
How to know if a cylinder is lying or if it is right
Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
XNA BLOG: http://geeks.ms/blogs/jbosch
Re: How to know if a cylinder is lying or if it is right
One way would be to check the entity's orientation matrix's up vector. If the dot product between its vector and Vector3.Up vector (which is equivalent to just the Y component of the matrix's up vector) is close to 1, then it's upright. If it's close to zero, then it's laying down. If it's close to -1, then it's upside down
Re: How to know if a cylinder is lying or if it is right
obvious thanks!
Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
XNA BLOG: http://geeks.ms/blogs/jbosch