Rigidbody.maxAngularVelocity Manual     Reference     Scripting  
Scripting > Runtime Classes > Rigidbody
Rigidbody.maxAngularVelocity
このドキュメントは有志により翻訳されたもので、オフィシャルではありません。オリジナルのページはこちら
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 maxAngularVelocity : float

Description

The maximimum angular velocity of the rigidbody. (Default 7) range { 0, infinity }

The angular velocity of rigidbodies is clamped to maxAngularVelocity to avoid numerical instability with fast rotating bodies. Because this may prevent intentional fast rotations on objects such as wheels, you can override this value per rigidbody.

JavaScripts
rigidbody.maxAngularVelocity = 10;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public void Awake() {
rigidbody.maxAngularVelocity = 10;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public def Awake():
rigidbody.maxAngularVelocity = 10