Joystick:getAxes

Joystick:getAxes Available since LÖVE 0.9.0 It has been moved from love.joystick.getAxes. Gets the direction of each axis. Function Synopsis axisDir1, axisDir2, ..., axisDirN = Joystick:getAxes( ) Arguments None. Returns number axisDir1 Direction of axis1. number axisDir2 Direction of axis2. number axisDirN Direction of axisN. See Also Joystick Joystick:getAxis Joystick:getAxisCount

Joint:setUserData

Joint:setUserData Available since LÖVE 0.9.2 This method is not supported in earlier versions. Associates a Lua value with the Joint. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Joint:setUserData( value ) Arguments any value The Lua value to associate with the Joint. Returns Nothing. See Also Joint Joint:getUserData

Joint:setCollideConnected

Joint:setCollideConnected Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Sets whether the connected Bodies should collide with each other. Function Synopsis Joint:setCollideConnected( collide ) Arguments boolean collide True for the Bodies to collide, false otherwise. Returns Nothing. See Also Joint

Joint:isDestroyed

Joint:isDestroyed Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether the Joint is destroyed. Destroyed joints cannot be used. Function Synopsis destroyed = Joint:isDestroyed( ) Arguments None. Returns boolean destroyed Whether the Joint is destroyed. See Also Joint Joint:destroy

Joint:getUserData

Joint:getUserData Available since LÖVE 0.9.2 This method is not supported in earlier versions. Returns the Lua value associated with this Joint. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis value = Joint:getUserData( ) Arguments None. Returns any value The Lua value associated with the Joint. See Also Joint Joint:setUserData

Joint:getType

Joint:getType Gets a string representing the type. Function Synopsis type = Joint:getType( ) Arguments None. Returns JointType type A string with the name of the Joint type. See Also Joint

Joint:getReactionTorque

Joint:getReactionTorque Returns the reaction torque on the second body. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis torque = Joint:getReactionTorque( invdt ) Arguments number invdt How long the force applies. Usually the inverse time step or 1/dt. Returns number torque The reaction torque on the second body. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions. Synopsis torque = Joint:getReacti

Joint:getReactionForce

Joint:getReactionForce Returns the reaction force in newtons on the second body Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis x, y = Joint:getReactionForce( invdt ) Arguments number x How long the force applies. Usually the inverse time step or 1/dt. Returns number x The x-component of the force. number y The y-component of the force. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions. Synopsi

Joint:getCollideConnected

Joint:getCollideConnected Gets whether the connected Bodies collide. Function Synopsis c = Joint:getCollideConnected( ) Arguments None. Returns boolean c True if they collide, false otherwise. See Also Joint

Joint:getBodies

Joint:getBodies Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the bodies that the Joint is attached to. Function Synopsis bodyA, bodyB = Joint:getBodies( ) Arguments None. Returns Body bodyA (nil) The first Body. Body bodyB (nil) The second Body. See Also Joint Body