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