Which constraint should i use?

nord666
Posts: 4
Joined: Sat Aug 23, 2008 9:02 pm

Which constraint should i use?

Post by nord666 »

Hi,

I want to know the constraint i should use for a rotating body like the Starcraft's turret or the top of a tank.

I want the "base" to be able to move and the "top" will stay at the same relative(not absolute) position (always at the top of the turret/tank).

Thanks (sorry if my english isn't really understandable :oops: )
mickey
Posts: 107
Joined: Fri Sep 19, 2008 6:08 pm

Re: Which constraint should i use?

Post by mickey »

I suppose a hinge, where its only constrained to rotate along the Y (or whatever is your up axis).

Or you can forget about constraints and use matrix stack or attach the top object to your base object. Whenever you move the top object combine its matrix with the base object.

Hope that helps

Cheers,

David
nord666
Posts: 4
Joined: Sat Aug 23, 2008 9:02 pm

Re: Which constraint should i use?

Post by nord666 »

thanks very much!

I'll try it now.