Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public void SetInfo(SKeepPosition info, SArrive arriveInfo)
 {
     m_keepPositioninfo = info;
     m_arriveInfo       = arriveInfo;
 }