|
Post by hosh on Apr 12, 2005 7:57:41 GMT 1
if i used ( NDB_NewtonBodyGetMatrix ) command to get the internal matrix of a body and follwed it by get matrix commands:
NDB_GetMatrix x# = NDB_GetVector_X() y# = NDB_GetVector_Y() z# = NDB_GetVector_Z() w#= NDB_Getvector_w()
then, can i used the values (X#,Y#,Z#,W#) with a right mathematical method to get the right euler angle of a body ( from 0 to 360)
|
|
|
Post by Kjelle69 on Apr 13, 2005 1:51:15 GMT 1
basically you can, but remember that a matrix is actually 16 numbers (4x4). if you're trying to do something like get the direction a rigid body is facing, you're probably in for a big headache... Euler angles are just not useful.. I recommend something like EZRotate, it'll solve all of your rotation woes
|
|
|
Post by kjelle69 on Apr 13, 2005 8:28:08 GMT 1
Which tech are you using in Ogre ? The Headache one or some other nice inbuilt functions?
|
|
|
Post by Kjelle69 on Apr 13, 2005 23:22:12 GMT 1
the main reason I switched is because I tried to write an object-oriented game in DBPro, and I spent most of my time just trying to figure out how to organize and manage the data involved... DBpro was making my development slower, instead of faster. so I decided to give C++ a look (which I had bought to make the wrapper), and WOW. never want to look back DBPro is still a great language though... just not quite as flexible as C++
|
|