Skip to content

format

typescript
Rigidbody.detectCollisions

class: Rigidbody

description

Whether to enable collision detection.

When detectCollisions is set to true, it means the rigidbody will perform collision detection and interact with other rigidbodies and colliders. When detectCollisions is set to false, it means the rigidbody will not perform collision detection and it will not collide with other objects.

parameter

param_nametypedescription

reture

typedescription
boolean

code example