Skip to content

format

typescript
Rigidbody.solverIterations

class: Rigidbody

description

The number of iterations used by the physics engine when solving positions.

Increasing the number of iterations can improve the stability of collisions between objects and the effectiveness of position constraints, especially in cases of high-speed collisions or highly curved collisions. Increasing the number of iterations can result in more accurate position simulation. However, excessive iterations may lead to performance loss, so it is necessary to adjust based on specific circumstances.

parameter

param_nametypedescription

reture

typedescription
numberThe number of iterations

code example