Help please: RB_GetRigidBodyLocation
Posted: Fri Jul 25, 2008 4:16 am
Hi,
I'm a beginner in c++ so I have a new question: I'd like to know the rigid body x,y,z,qx.. but i don't understand what i have to write using the function!
I read the manual but i'd like to have an example to understand the right form.
I started from your RigidBody-sample and i put RB_GetRigidBodyLocation after (and out) the "for" cycle:
for(int i=0; i<RB_GetRigidBodyCount(); i++)
if(RB_IsRigidBodyTracked(i))
bodies++;
RB_GetRigidBodyLocation(1,&x,&x,&x,&qx,&qy,&qz,&qw,&heading,&attitude,&bank);????
I also declared, in the beginning of the "main":
float x,y,z,qx,qy,qz,qw,heading,attitude,bank;
when i run the .exe, i obtain a runtime error
Thank you very much for the attention,
Alex
I'm a beginner in c++ so I have a new question: I'd like to know the rigid body x,y,z,qx.. but i don't understand what i have to write using the function!
I read the manual but i'd like to have an example to understand the right form.
I started from your RigidBody-sample and i put RB_GetRigidBodyLocation after (and out) the "for" cycle:
for(int i=0; i<RB_GetRigidBodyCount(); i++)
if(RB_IsRigidBodyTracked(i))
bodies++;
RB_GetRigidBodyLocation(1,&x,&x,&x,&qx,&qy,&qz,&qw,&heading,&attitude,&bank);????
I also declared, in the beginning of the "main":
float x,y,z,qx,qy,qz,qw,heading,attitude,bank;
when i run the .exe, i obtain a runtime error
Thank you very much for the attention,
Alex