예제 #1
0
        /// <summary>
        /// Applies the torque impulse.
        /// </summary>
        /// <param name="torque">The torque.</param>
        public void ApplyTorqueImpulse(Vector3 torque)
        {
            if (InternalRigidBody == null)
            {
                throw new InvalidOperationException("Attempted to call a Physics function that is avaliable only when the Entity has been already added to the Scene.");
            }

            InternalRigidBody.ApplyTorqueImpulse(torque);
        }
예제 #2
0
 /// <summary>
 /// Applies the torque impulse.
 /// </summary>
 /// <param name="torque">The torque.</param>
 public void ApplyTorqueImpulse(Vector3 torque)
 {
     InternalRigidBody.ApplyTorqueImpulse(torque);
 }