Just starting out

nikoasumi
Posts: 1
Joined: Fri Mar 28, 2008 2:28 am

Just starting out

Post by nikoasumi »

Hi all,

I am new to Bullet physics, so nice to meet you all.

I am currently intergrating this into an engine of mine, I was looking at the helloworld demo, and was able to reproduce it perfectly. However, I cant seem to get angles out of it. Maybe i got confused since getting position was easy and was thinking angles would be the same. (GetangleX LOL).

I was wondering how would one get angles? Or Euler angle so to speak with pitch,yaw,roll etc.

Thank you for your time.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Just starting out

Post by Erwin Coumans »

nikoasumi wrote: I was wondering how would one get angles? Or Euler angle so to speak with pitch,yaw,roll etc.
Bullet uses 3x3 matrices or quaternions to represent orientation. The are plenty of different Euler angle representations, dependent on the order (X-Y-Z, Z-Y-Z is not the same). Best to figure out how to convert a 3x3 matrix/quaternion to your specific Euler representation.

Erwin