CastleSeven
New member
Hi all - We just updated to UCC 2.2 and I'm having an issue with one of my abilities that was working fine before.
The ability is supposed to trigger when entering a specific area and propel the character forward by a fixed amount. Here's the ability code:
When I enter the trigger everything freezes. Inspection of the Editor log shows repeated "Updating position via ability" messages, which makes me think the trigger is working fine, but we're not updating the position and are instead re-calling the same code because we're still interacting with the trigger space.
Did something fundamental change in 2.2 that needs to be addressed here?
Thanks!
The ability is supposed to trigger when entering a specific area and propel the character forward by a fixed amount. Here's the ability code:
C#:
public class WarpThroughDoor : DetectObjectAbilityBase {
public override void UpdatePosition()
{
base.UpdatePosition();
Debug.Log("Updating position via ability");
Vector3 newPos = m_CharacterLocomotion.transform.position + m_CharacterLocomotion.transform.forward * 2.0f;
m_CharacterLocomotion.SetPosition(newPos);
}
}
When I enter the trigger everything freezes. Inspection of the Editor log shows repeated "Updating position via ability" messages, which makes me think the trigger is working fine, but we're not updating the position and are instead re-calling the same code because we're still interacting with the trigger space.
Did something fundamental change in 2.2 that needs to be addressed here?
Thanks!