Ejemplo n.º 1
0
        /// <summary>
        /// Applies the impulse.
        /// </summary>
        /// <param name="impulse">The impulse.</param>
        public void ApplyImpulse(Vector3 impulse)
        {
            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.ApplyCentralImpulse(impulse);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Applies the impulse.
 /// </summary>
 /// <param name="impulse">The impulse.</param>
 public void ApplyImpulse(Vector3 impulse)
 {
     InternalRigidBody.ApplyCentralImpulse(impulse);
 }