예제 #1
0
        public void AddForce(Vector3 force)
        {
            ForceMode mode = ForceMode.Force;

            Rigidbody.INTERNAL_CALL_AddForce(this, ref force, mode);
        }
예제 #2
0
 /// <summary>
 ///   <para>Adds a force to the rigidbody.</para>
 /// </summary>
 /// <param name="force">Force vector in world coordinates.</param>
 /// <param name="mode"></param>
 public void AddForce(Vector3 force, [DefaultValue("ForceMode.Force")] ForceMode mode)
 {
     Rigidbody.INTERNAL_CALL_AddForce(this, ref force, mode);
 }