Skip to content

format

typescript
Rigidbody.Sleep()

class: Rigidbody

description

Rigidbody Sleeping

Setting a Rigidbody to sleep when it is no longer affected by external forces or collisions can reduce computation and physics simulation costs, improving performance.

parameter

param_nametypedescription

reture

typedescription
void

code example