JointMotor.freeSpin Manual     Reference     Scripting  
Scripting > Runtime Classes > JointMotor
JointMotor.freeSpin
このドキュメントは有志により翻訳されたもので、オフィシャルではありません。オリジナルのページはこちら
This document is unofficially translated by users.Please see the original document here.

翻訳に関する修正など、ご連絡はこちらまで。
Please send e-mail to here, when you have any question about the translation.

編集 (GitHub)

var freeSpin : bool

Description

If freeSpin is enabled the motor will only accelerate but never slow down.

JavaScripts
hingeJoint.motor.freeSpin = false;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public void Awake() {
hingeJoint.motor.freeSpin = false;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public def Awake():
hingeJoint.motor.freeSpin = false