Local coordinates system

Post Reply
alex_karate_do
Posts: 19
Joined: Wed Jul 16, 2008 1:53 pm
Location: Italy, Rome

Local coordinates system

Post 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
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Local coordinates system

Post 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.
alex_karate_do
Posts: 19
Joined: Wed Jul 16, 2008 1:53 pm
Location: Italy, Rome

Re: Local coordinates system

Post 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?
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Local coordinates system

Post 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.
alex_karate_do
Posts: 19
Joined: Wed Jul 16, 2008 1:53 pm
Location: Italy, Rome

Re: Local coordinates system

Post by alex_karate_do »

Ok, so what do you mean with "manually rotate the data in the rdef file"?
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Local coordinates system

Post 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.
Post Reply