Joint

Attach multiple bodies together to interact in unique ways.

Constructors

love.physics.newDistanceJoint Creates a DistanceJoint between two bodies.
love.physics.newFrictionJoint A FrictionJoint applies friction to a body. 0.8.0
love.physics.newGearJoint Create a GearJoint connecting two Joints.
love.physics.newMotorJoint Creates a joint between two bodies which controls the relative motion between them. 0.9.0
love.physics.newMouseJoint Create a joint between a body and the mouse.
love.physics.newPrismaticJoint Creates a PrismaticJoint between two bodies.
love.physics.newPulleyJoint Creates a PulleyJoint to join two bodies to each other and the ground.
love.physics.newRevoluteJoint Creates a pivot joint between two bodies.
love.physics.newRopeJoint Creates a joint between two bodies that enforces a max distance between them. 0.8.0
love.physics.newWeldJoint A WeldJoint essentially glues two bodies together. 0.8.0
love.physics.newWheelJoint Creates a wheel joint. 0.8.0

Functions

Joint:destroy Explicitly destroys the Joint.
Joint:getAnchors Get the anchor points of the joint.
Joint:getBodies Gets the bodies that the Joint is attached to. 0.9.2
Joint:getCollideConnected Gets whether the connected Bodies collide.
Joint:getReactionForce Returns the reaction force on the second body.
Joint:getReactionTorque Returns the reaction torque on the second body.
Joint:getType Gets a string representing the type.
Joint:getUserData Returns the Lua value associated with this Joint. 0.9.2
Joint:isDestroyed Gets whether the Joint is destroyed. 0.9.2
Joint:setCollideConnected Sets whether the connected Bodies should collide with each other. 0.8.0
Joint:setUserData Associates a Lua value with the Joint. 0.9.2
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.

Supertypes

Subtypes

DistanceJoint Keeps two bodies at the same distance.
FrictionJoint A FrictionJoint applies friction to a body. 0.8.0
GearJoint Keeps bodies together in such a way that they act like gears.
MotorJoint Controls the relative motion between two Bodies 0.9.0
MouseJoint For controlling objects with the mouse.
PrismaticJoint Restricts relative motion between Bodies to one shared axis.
PulleyJoint Allows you to simulate bodies connected through pulleys.
RevoluteJoint Allow two Bodies to revolve around a shared point.
RopeJoint Enforces a maximum distance between two points on two bodies. 0.8.0
WeldJoint A WeldJoint essentially glues two bodies together. 0.8.0
WheelJoint Restricts a point on the second body to a line on the first body.

Enums

JointType Different types of joints.

See Also


PrismaticJoint:getMotorSpeed
  • References/Game Development/LÖVE/love.physics/Joint/PrismaticJoint

PrismaticJoint:getMotorSpeed Gets the motor speed. Function Synopsis s

2025-01-10 15:47:30
PulleyJoint:getMaxLengths
  • References/Game Development/LÖVE/love.physics/Joint/PulleyJoint

PulleyJoint:getMaxLengths Get the maximum lengths of the rope segments. Function Synopsis

2025-01-10 15:47:30
MotorJoint:getAngularOffset
  • References/Game Development/LÖVE/love.physics/Joint/MotorJoint

MotorJoint:getAngularOffset Available since LÖVE 0.9.0 This method is not supported in earlier versions. Gets the target angular offset between

2025-01-10 15:47:30
DistanceJoint:setLength
  • References/Game Development/LÖVE/love.physics/Joint/DistanceJoint

DistanceJoint:setLength Sets the equilibrium distance between the two Bodies. Function Synopsis

2025-01-10 15:47:30
DistanceJoint:getDampingRatio
  • References/Game Development/LÖVE/love.physics/Joint/DistanceJoint

DistanceJoint:getDampingRatio Available since LÖVE 0.8.0 It has been renamed from

2025-01-10 15:47:30
WheelJoint:setMaxMotorTorque
  • References/Game Development/LÖVE/love.physics/Joint/WheelJoint

WheelJoint:setMaxMotorTorque Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new maximum motor torque.

2025-01-10 15:47:30
PrismaticJoint:enableLimit
  • References/Game Development/LÖVE/love.physics/Joint/PrismaticJoint

PrismaticJoint:enableLimit Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed

2025-01-10 15:47:30
PulleyJoint:setMaxLengths
  • References/Game Development/LÖVE/love.physics/Joint/PulleyJoint

PulleyJoint:setMaxLengths Set the maximum lengths of the rope segments. The physics module also imposes maximum values for the rope segments. If the parameters exceed these values

2025-01-10 15:47:30
Joint:getBodies
  • References/Game Development/LÖVE/love.physics/Joint

Joint:getBodies Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the

2025-01-10 15:47:30
PrismaticJoint:setLowerLimit
  • References/Game Development/LÖVE/love.physics/Joint/PrismaticJoint

PrismaticJoint:setLowerLimit Sets the lower limit. Function Synopsis

2025-01-10 15:47:30