Collider:setKinematic

Sets whether the Collider is kinematic.

Collider:setKinematic(kinematic)

Arguments

NameTypeDescription
kinematicbooleanWhether 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.

See also