AI model aiming?

Hello everyone!

I am wondering how I would show a model aiming its weapon and torso/head based on the targets Y position.

Lets say that it is trying to aim at an enemy above him, and I just want his upper body to move but his legs to stay planted, how would I do that? I believe that I am over complicating the problem and there should be a much easier solution.

Thanks,

Kevin Richardson

Make separate upper and lower bodies in your model and child them both to a different object. Then simply rotate the the upper body by making it look at the Vector3(x,y,z) that you are aiming at. Rotate the lower body to the same Vector3(x, 0, z) with y = 0.

Would that mean that I would also animate the upper and lower body separately in maya?

Are there any solutions that will let me use a full character rig?

Take a look in the unity store for “3rd Person Shooter”. It is free and should get you moving down the right path.

I used a modified Head Look Controller, and have the play aim at an object, no mesh or collider, directly infront of the player. Works like a charm.

Using animation for things like that in a no no when that can be done programmatically.