Rigidbody.solverIterationCount Manual     Reference     Scripting  
Scripting > Runtime Classes > Rigidbody
Rigidbody.solverIterationCount

var solverIterationCount : int

Description

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.

JavaScripts
rigidbody.solverIterationCount = 10;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
rigidbody.solverIterationCount = 10