Skip to content

format

typescript
Rigidbody.solverVelocityIterations

class: Rigidbody

description

The number of iterations used by the physics engine to calculate the velocity of rigid bodies.

Increasing the number of iterations can improve the stability of collisions between objects, especially in cases of high-speed collisions or highly curved collisions, resulting in more accurate collision effects. However, excessive iterations may also lead to performance loss, so it is necessary to adjust it according to the specific situation.

parameter

param_nametypedescription

reture

typedescription
number

code example