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

Joint:getAnchors

Joint:getAnchors Get the anchor points of the joint. Function Synopsis x1, y1, x2, y2 = Joint:getAnchors( ) Arguments None. Returns number x1 The x-component of the anchor on Body 1. number y1 The y-component of the anchor on Body 1. number x2 The x-component of the anchor on Body 2. number y2 The y-component of the anchor on Body 2. See Also Joint