Hi,
When applying the basic RotateTowards task on a Third Person Controller-powered AI Agent, it doesn't do anything because the rotation of the agent is controlled by TPC. I asked Justin on Discord on how to get around this, and he responded that a new custom UCC ability that rotates the agent that could then be used as a task in a behavior tree should do the trick.
I wanted to post this question here so that others who have or might run into this same issue can look back on this for guidance.
I'm currently coding the new ability and am having trouble figuring out how to accomplish this. My goal is to have the agent rotate towards a given Target GameObject at a variable rotation speed whenever this ability is called upon, until it is completely facing / looking at the target.
Is there some sort of method that's part of UCC's API that I should be calling upon / overriding in order to manually apply rotation? I toyed around with overriding ApplyRotation but wasn't able to get my desired effect. Or should I be manually applying a Quaternion Slerp on the Agent's transform?
Any sort of help would be greatly appreciated. Loving Behavior Designer and Third Person Controller so far, and can tell that it'll be very powerful once I get through some of these newbie hurdles.
Thanks!
When applying the basic RotateTowards task on a Third Person Controller-powered AI Agent, it doesn't do anything because the rotation of the agent is controlled by TPC. I asked Justin on Discord on how to get around this, and he responded that a new custom UCC ability that rotates the agent that could then be used as a task in a behavior tree should do the trick.
I wanted to post this question here so that others who have or might run into this same issue can look back on this for guidance.
I'm currently coding the new ability and am having trouble figuring out how to accomplish this. My goal is to have the agent rotate towards a given Target GameObject at a variable rotation speed whenever this ability is called upon, until it is completely facing / looking at the target.
Is there some sort of method that's part of UCC's API that I should be calling upon / overriding in order to manually apply rotation? I toyed around with overriding ApplyRotation but wasn't able to get my desired effect. Or should I be manually applying a Quaternion Slerp on the Agent's transform?
Any sort of help would be greatly appreciated. Loving Behavior Designer and Third Person Controller so far, and can tell that it'll be very powerful once I get through some of these newbie hurdles.
Thanks!