How to control rotation of Tactical Agents

artius

Member
I'm using the Tactical Pack and trying to get an agent to aim at a target. It works, but it rotates the entire object rather than a specific transform. Is there a way to set what transforms rotate up and down when aiming?
 
The TacticalAgent class will rotate the entire object, so if you want to only rotate a child you'll need to modify (NavMesh)TacticalAgent.RotateTowards
 
I figured that was the case.
So would it be safe to say that I'd need to either subclass the TacticalAgent or create a new TacticalAgentCustom, then either override or create a new RotateTowards, then have the actions inherit from the new class?
 
So would it be safe to say that I'd need to either subclass the TacticalAgent or create a new TacticalAgentCustom, then either override or create a new RotateTowards, then have the actions inherit from the new class?
Yes, the override approach should work.
 
Top