Version: 5.4

Physics.defaultSolverVelocityIterations

マニュアルに切り替える
public static int defaultSolverVelocityIterations ;

説明

defaultSolverVelocityIterations は、ジョイントおよび接点が解決される精度に影響します。デフォルトは 1。正数でなければなりません。

Increasing this value will result in higher accuracy of the resulting exit velocity after a Rigidbody bounce. If you are experiencing issues with jointed Rigidbodies or Ragdolls moving too much after collisions you can try to increase this value.

この値は通常スクリプトではなく Edit->Project Settings->Physics でインスペクターから変更します。

ノート: defaultSolverVelocityIterations を変更しても、すでに作成したリジッドボディには影響ありません。存在するリジッドボディを変更するには、Rigidbody.solverVelocityIterations を使用してください。

See Also: Physics.defaultSolverIterations.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Physics.defaultSolverVelocityIterations = 10; } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961