Colliders are objects that represent a single rigid body in a physics simulation. They can have forces applied to them and collide with other colliders.
Collider:addShape | Add a Shape to the Collider. |
Collider:applyForce | Apply a force to the Collider. |
Collider:applyTorque | Apply torque to the Collider. |
Collider:destroy | Destroy the Collider. |
Collider:getAABB | Get the Collider's axis aligned bounding box. |
Collider:getAngularDamping | Get the angular damping of the Collider. |
Collider:getAngularVelocity | Get the angular velocity of the Collider. |
Collider:getFriction | Get the friction of the Collider. |
Collider:getJoints | Get a list of Joints attached to the Collider. |
Collider:getLinearDamping | Get the linear damping of the Collider. |
Collider:getLinearVelocity | Get the linear velocity of the Collider. |
Collider:getLinearVelocityFromLocalPoint | Get the linear velocity of the Collider at a point. |
Collider:getLinearVelocityFromWorldPoint | Get the linear velocity of the Collider at a world space point. |
Collider:getLocalCenter | Get the Collider's center of mass. |
Collider:getLocalPoint | Convert a point from world space to collider space. |
Collider:getLocalVector | Convert a vector from world space to local space. |
Collider:getMass | Get the total mass of the Collider. |
Collider:getMassData | Compute mass properties for the Collider. |
Collider:getOrientation | Get the orientation of the Collider. |
Collider:getPose | Get the pose of the Collider. |
Collider:getPosition | Get the position of the Collider. |
Collider:getRestitution | Get the bounciness of the Collider. |
Collider:getShapes | Get a list of Shapes attached to the Collider. |
Collider:getTag | Get the Collider's tag. |
Collider:getUserData | Get the Collider's user data. |
Collider:getWorld | Get the World the Collider is in. |
Collider:getWorldPoint | Convert a point from local space to world space. |
Collider:getWorldVector | Convert a vector from local space to world space. |
Collider:isAwake | Check if the Collider is awake. |
Collider:isGravityIgnored | Check if the Collider ignores gravity. |
Collider:isKinematic | Check if the Collider is kinematic. |
Collider:isSleepingAllowed | Check if the Collider is allowed to sleep. |
Collider:removeShape | Remove a Shape from the Collider. |
Collider:setAngularDamping | Set the angular damping of the Collider. |
Collider:setAngularVelocity | Set the angular velocity of the Collider. |
Collider:setAwake | Put the Collider to sleep or wake it up. |
Collider:setFriction | Set the friction of the Collider. |
Collider:setGravityIgnored | Set whether the Collider ignores gravity. |
Collider:setKinematic | Set whether the Collider is kinematic. |
Collider:setLinearDamping | Set the linear damping of the Collider. |
Collider:setLinearVelocity | Set the linear velocity of the Collider. |
Collider:setMass | Set the total mass of the Collider. |
Collider:setMassData | Set mass properties for the Collider. |
Collider:setOrientation | Set the orientation of the Collider. |
Collider:setPose | Set the pose of the Collider. |
Collider:setPosition | Set the position of the Collider. |
Collider:setRestitution | Set the bounciness of the Collider. |
Collider:setSleepingAllowed | Set whether the Collider is allowed to sleep. |
Collider:setTag | Set the Collider's tag. |
Collider:setUserData | Set the Collider's user data. |