Пример #1
0
        public float GetYawSpeed(ICECreatureControl _control)
        {
            float _speed = 0;

            if (Motion.UseAutomaticAngularVelocity)
            {
                _speed = MathTools.CalculateAngularVelocity(Motion.Velocity, Motion.VelocityMaximum, Motion.AngularVelocityMaximum);
            }
            else
            {
                _speed = Motion.AngularVelocity.y;
            }

            return(_speed);
        }