A Shape is a physics object that can be attached to colliders to define their shape.


lovr.physics.newBoxShapeCreate a new BoxShape.
lovr.physics.newCapsuleShapeCreate a new CapsuleShape.
lovr.physics.newCylinderShapeCreate a new CylinderShape.
lovr.physics.newSphereShapeCreate a new SphereShape.
World:newBoxColliderAdd a Collider with a BoxShape to the World.
World:newCapsuleColliderAdd a Collider with a CapsuleShape to the World.
World:newCylinderColliderAdd a Collider with a CylinderShape to the World.
World:newSphereColliderAdd a Collider with a SphereShape to the World.


Shape:getAABBGet the Shape's axis aligned bounding box.
Shape:getMassCompute mass properties of the Shape.
Shape:destroyDestroy the Shape.
Shape:isSensorCheck if the Shape is a sensor.
Shape:setSensorSet the sensor status for the Shape.
Shape:isEnabledCheck if the Shape is enabled.
Shape:setEnabledEnable or disable the Shape.
Shape:getColliderGet the Collider the Shape is attached to.
Shape:getPositionGet the Shape's position.
Shape:setPositionSet the Shape's position.
Shape:getOrientationGet the Shape's orientation.
Shape:setOrientationSet the Shape's orientation.
Shape:getUserDataGet the Shape's user data.
Shape:setUserDataSet the Shape's user data.
Shape:getTypeGet the type of the Shape.

See also