Esempio n. 1
0
        public void AddForceAtPosition(Vector3 force, Vector3 position)
        {
            ForceMode mode = ForceMode.Force;

            Rigidbody.INTERNAL_CALL_AddForceAtPosition(this, ref force, ref position, mode);
        }
Esempio n. 2
0
 /// <summary>
 ///   <para>Applies force at position. As a result this will apply a torque and force on the object.</para>
 /// </summary>
 /// <param name="force">Force vector in world coordinates.</param>
 /// <param name="position">Position in world coordinates.</param>
 /// <param name="mode"></param>
 public void AddForceAtPosition(Vector3 force, Vector3 position, [DefaultValue("ForceMode.Force")] ForceMode mode)
 {
     Rigidbody.INTERNAL_CALL_AddForceAtPosition(this, ref force, ref position, mode);
 }