Rigidbody.solverIterationCount 求解迭代次数

var solverIterationCount : int


Allows you to override the solver iteration count per rigidbody.


The solverIterationCount determines how accuratly joints and contacts are resolved. If you are having trouble with jointed bodies oscillating and behaving erratically setting a higher solver iteration count may improve their stability.


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		rigidbody.solverIterationCount = 10;
rigidbody.solverIterationCount = 10;
Page last updated: 2011-2-9