Creates a PrismaticJoint between two bodies.
A prismatic joint constrains two bodies to move relatively to each other on a specified axis. It does not allow for relative rotation. Its definition and operation are similar to a revolute joint, but with translation and force substituted for angle and torque.
Available since LÖVE 0.8.0
This variant is not supported in earlier versions.
joint = love.physics.newPrismaticJoint( body1, body2, x, y, ax, ay, collideConnected )
Body body1
Body body2
number x
number y
number ax
number ay
boolean collideConnected (false)
PrismaticJoint joint
Available since LÖVE 0.8.0
This variant is not supported in earlier versions.
joint = love.physics.newPrismaticJoint( body1, body2, x1, y1, x2, y2, ax, ay, collideConnected )
Body body1
Body body2
number x1
number y1
number x2
number y2
number ax
number ay
boolean collideConnected (false)
PrismaticJoint joint
Available since LÖVE 0.10.2
This variant is not supported in earlier versions.
joint = love.physics.newPrismaticJoint( body1, body2, x1, y1, x2, y2, ax, ay, collideConnected, referenceAngle )
Body body1
Body body2
number x1
number y1
number x2
number y2
number ax
number ay
boolean collideConnected (false)
number referenceAngle (0)
PrismaticJoint joint
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
joint = love.physics.newPrismaticJoint( body1, body2, x, y, ax, ay )
Body body1
Body body2
number x
number y
number ax
number ay
PrismaticJoint joint
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.physics.newPrismaticJoint