Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Type
DistanceJoint
Keeps two bodies at the same distance.
Functions
getDamping( )
Gets the damping ratio.
getFrequency( )
Gets the response speed.
getLength( )
Gets the equilibrium distance between the two Bodies.
setDampingRatio( ratio )
Sets the damping ratio.
setFrequency( hz )
Sets the response speed.
setLength( l )
Sets the equilibrium distance between the two Bodies.
destroy( )
Explicitly destroys the Joint.
getAnchors( )
Get the anchor points of the joint.
getCollideConnected( )
Gets whether the connected Bodies collide.
getReactionForce( )
Gets the reaction force on Body 2 at the joint anchor.
getReactionTorque( )
Gets the reaction torque on Body 2.
getType( )
Gets an string representing the type.
setCollideConnected( collide )
Sets whether the connected Bodies should collide with eachother.
Supertypes
Joint
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question