Page 1 of 1

Local coordinates system

Posted: Wed Jul 30, 2008 2:56 am
by alex_karate_do
Hi,
I'm using rigid body API, but i create the rigid body definitions in your application "optitrack rigid body tool".

So i have the following problem: i need to assign a specific local coordinates system, but i noticed that rigid body create this sistem parallel to the global one. Can I rotate it?

I also noticed that ARENA allows this post-rotation, but the format of the rigid bodies created isn't ".rdef", so i think that it is impossible to use them with RB API.

Thanks
Alex

Re: Local coordinates system

Posted: Wed Jul 30, 2008 11:32 am
by beckdo
That's true. There is no way to automatically translate or rotate the rigid body after the definition. You'll either need to manually rotate the data in the rdef file or position the rigid body relative to the world coordinate system.

Re: Local coordinates system

Posted: Thu Jul 31, 2008 2:00 am
by alex_karate_do
Thank you Doug, it's a good idea to modify the .rdef.
Is it right to change the values like: ModelRotX="0.000000"??

I mean, are they the parameters that express the rotation between local and world coordinate system? I think that zero is the default value that Rigid Body Tool gives to them, is it right to modify this?

Re: Local coordinates system

Posted: Thu Jul 31, 2008 10:28 am
by beckdo
ModelRotX only rotates the 3D model that is loaded and being displayed over the rigid body. The rigid body orientation would remain unchanged.

Re: Local coordinates system

Posted: Fri Aug 01, 2008 3:37 am
by alex_karate_do
Ok, so what do you mean with "manually rotate the data in the rdef file"?

Re: Local coordinates system

Posted: Fri Aug 01, 2008 2:48 pm
by beckdo
Yeah, it's not very elegant rotating points around the origin manually. It would be much easier to orient the rigid body relative to the capture volume prior to defining the rigid body.