Shader:getWarnings

Shader:getWarnings Available since LÖVE 0.9.0 It has been renamed from PixelEffect:getWarnings. Returns any warning and error messages from compiling the shader code. This can be used for debugging your shaders if there's anything the graphics hardware doesn't like. Function Synopsis warnings = Shader:getWarnings( ) Arguments None. Returns string warnings Warning and error messages (if any). See Also Shader

Shader Variables

Shader Variables Available since LÖVE 0.9.0 These built-in shader variables are not supported in earlier versions. There are several built-in variables LÖVE provides in vertex and pixel shaders. All built-in variables are read-only unless otherwise specified. Global built-in variables mat4 TransformMatrix The transformation matrix affected by love.graphics.translate and friends. mat4 ProjectionMatrix The orthographic projection matrix. mat4 TransformProjectionMatrix The combined tra

RopeJoint:getMaxLength

RopeJoint:getMaxLength Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the maximum length of a RopeJoint. Function Synopsis maxLength = RopeJoint:getLength( ) Arguments None. Returns number maxLength The maximum length of the RopeJoint. See Also RopeJoint

RevoluteJoint:setMotorSpeed

RevoluteJoint:setMotorSpeed Sets the motor speed. Function Synopsis RevoluteJoint:setMotorSpeed( s ) Arguments number s The motor speed, radians per second. Returns Nothing. See Also RevoluteJoint

RevoluteJoint:setLowerLimit

RevoluteJoint:setLowerLimit Sets the lower limit. Function Synopsis RevoluteJoint:setLowerLimit( lower ) Arguments number lower The lower limit, in radians. Returns Nothing. See Also RevoluteJoint

RevoluteJoint:setMaxMotorTorque

RevoluteJoint:setMaxMotorTorque Set the maximum motor force. Function Synopsis RevoluteJoint:setMaxMotorTorque( f ) Arguments number f The maximum motor force, in Nm. Returns Nothing. See Also RevoluteJoint

RevoluteJoint:setMotorEnabled

RevoluteJoint:setMotorEnabled Available since LÖVE 0.9.0 It has been renamed from RevoluteJoint:enableMotor. Enables/disables the joint motor. Function Synopsis RevoluteJoint:setMotorEnabled( enable ) Arguments boolean enable True to enable, false to disable. Returns Nothing. See Also RevoluteJoint

RevoluteJoint:setLimitsEnabled

RevoluteJoint:setLimitsEnabled Available since LÖVE 0.9.0 It has been renamed from RevoluteJoint:enableLimits. Enables/disables the joint limit. Function Synopsis RevoluteJoint:setLimitsEnabled( enable ) Arguments boolean enable True to enable, false to disable. Returns Nothing. See Also RevoluteJoint

RevoluteJoint:setLimits

RevoluteJoint:setLimits Sets the limits. Function Synopsis RevoluteJoint:setLimits( lower, upper ) Arguments number lower The lower limit, in radians. number upper The upper limit, in radians. Returns Nothing. See Also RevoluteJoint

RevoluteJoint:isLimitsEnabled

RevoluteJoint:isLimitsEnabled Removed in LÖVE 0.9.0 It has been renamed to RevoluteJoint:hasLimitsEnabled. Checks whether limits are enabled. Function Synopsis enabled = RevoluteJoint:isLimitsEnabled( ) Arguments None. Returns boolean enabled True if enabled, false otherwise. See Also RevoluteJoint