Пример #1
0
        public void AddTorque(Vector3 torque)
        {
            ForceMode mode = ForceMode.Force;

            Rigidbody.INTERNAL_CALL_AddTorque(this, ref torque, mode);
        }
Пример #2
0
 /// <summary>
 ///   <para>Adds a torque to the rigidbody.</para>
 /// </summary>
 /// <param name="torque">Torque vector in world coordinates.</param>
 /// <param name="mode"></param>
 public void AddTorque(Vector3 torque, [DefaultValue("ForceMode.Force")] ForceMode mode)
 {
     Rigidbody.INTERNAL_CALL_AddTorque(this, ref torque, mode);
 }