public static SteeringOutput GetSteering(KinematicState ownKS, ref SWander info)
        {
            info.m_targetOrientation           += info.m_wanderRate * MathExtent.Binomial();
            SURROGATE_TARGET.transform.position = MathExtent.AngleToVector(info.m_targetOrientation) * info.m_wanderRadius;

            SURROGATE_TARGET.transform.position += ownKS.m_position + MathExtent.AngleToVector(ownKS.m_orientation) * info.m_wanderOffset;

            return(Seek.GetSteering(ownKS, SURROGATE_TARGET));
        }
Beispiel #2
0
        public static SteeringOutput GetSteering(KinematicState ownKS, SNaiveWander info)
        {
            ownKS.m_orientation += info.m_wanderRate * MathExtent.Binomial();

            return(GoWhereYouLook.GetSteering(ownKS));
        }