I have a simple turret model I want rigged inside unity so that I can automatically track targets. The aiming is designed around a turn table + second pivot for elevation angle. Is there an easy way to make this work? FBX doesn't export any information about constraints and I can't find constraints anywhere in the UI.
Replies
The turret doesn't work with a simple look at command since it needs two joints to orient itself. In order to aim it needs to rotate around two diffent constrained pivots. Y for the base, and local X + Y for the head.
Then for the up/down looky bit, you want to get the angle between it's position and the target's position. Then rotate on the X asis (assuming it's X is the up/down bit's axle) until it points to it. There's probably something a bit more clever you could do for this, but I'm tired and it's been a while since I've messed with stuff like that :P
http://constraints.path-o-logical.com/