Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kavery on August 04, 2016, 10:05:21 AM

Title: Smooth Look At - how to animate legs - pivot when GObj. rotates?
Post by: kavery on August 04, 2016, 10:05:21 AM
So I have a bunch of 3D enemy avatars with rotation constraints using the Look At and Smooth Look At actions. This keeps them always facing the player.

When you are running or walking by them quickly, it becomes obvious that their feet are stiff and sliding on the ground as they rotate towards you.

I'm wondering how I can trigger a pivot animation when the rotation becomes severe enough to warrant it?

I'd also like to trigger a similar animation when the enemy changes look at targets (the target is the closest player) 

Title: Re: Smooth Look At - how to animate legs - pivot when avatar rotates?
Post by: kavery on August 04, 2016, 01:10:03 PM
I'm now realizing I could probably use 'get angle to target' and watch for a high rotation speed somehow?

Also interested if anyone knows of a different way (less overhead) or a procedural method for moving legs during a rotation. I'm not using physics or IK methods currently. Just mecanim and transforms.