ProjectStorms.AirshipSuicideBehaviour.Rocket C# (CSharp) Метод

Rocket() приватный Метод

Moves the player's ship forward with the rocket speed.
private Rocket ( ) : void
Результат void
        private void Rocket()
        {
            m_myRigid.AddRelativeForce(Vector3.forward * 250, ForceMode.Impulse);

            // This finds the 'up' vector.
            var liftDirection = Vector3.Cross(m_myRigid.velocity, m_myRigid.transform.right).normalized;

            m_myRigid.AddForce(liftDirection);

            // Spin the propeller fast
            m_anim.SetFloat(m_animPropellerMult, animThrottleMult);
        }