rigidbody
A rigidbody that has colliders as children will act under physics.
Properties
Section titled “Properties”.type: String
Section titled “.type: String”The type of rigidbody, either static, kinematic or dynamic. Defaults to static.
NOTE: if you plan to move the rigidbody with code without being dynamic, use kinematic for performance reasons.
.onContactStart: Function
Section titled “.onContactStart: Function”The function to call when a child collider generates contacts with another rigidbody.
.onContactEnd: Function
Section titled “.onContactEnd: Function”The function to call when a child collider ends contacts with another rigidbody.
.onTriggerEnter: Function
Section titled “.onTriggerEnter: Function”The function to call when a child trigger collider is entered.
.onTriggerLeave: Function
Section titled “.onTriggerLeave: Function”The function to call when a child trigger collider is left.
.{...Node}
Section titled “.{...Node}”Inherits all Node properties