public static SteeringOutput GetSteering(KinematicState me, SKeepPosition info) { float targetOrientation = info.m_target.transform.eulerAngles.y; targetOrientation += info.m_requiredAngle; Vector3 finalTargetPosition = MathExtent.AngleToVector(targetOrientation).normalized; finalTargetPosition *= info.m_requiredDistance; SURROGATE_TARGET.position = info.m_target.position + finalTargetPosition; return(Seek.GetSteering(me, SURROGATE_TARGET)); }
public void SetInfo(SKeepPosition info, SArrive arriveInfo) { m_keepPositioninfo = info; m_arriveInfo = arriveInfo; }