Collider:setKinematic
EditSets whether the Collider is kinematic.
Collider:setKinematic(kinematic)
Arguments
Name | Type | Description |
kinematic | boolean | Whether the Collider is kinematic. |
Returns
Nothing
Notes
Kinematic colliders behave as though they have infinite mass, ignoring external forces like gravity, joints, or collisions (though non-kinematic colliders will collide with them). They can be useful for static objects like floors or walls.