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.

JavaScript
rigidbody.solverIterationCount = 10;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
rigidbody.solverIterationCount = 10