Version: 2022.1
言語: 日本語
public int solverIterations ;

説明

solverIterations はリジッドボディのジョイントと衝突の接触がどれだけ正確に解決されるかに影響を与えます。Physics.defaultSolverVelocityIterations をオーバーライドします。正数でなければなりません。

If you are having trouble with connected Rigidbodies oscillating and behaving erratically setting a higher solver iteration count may improve their stability (but is slower).

See Also: Rigidbody.solverVelocityIterations.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { Rigidbody rb = GetComponent<Rigidbody>(); rb.solverIterations = 30; } }