Shader:getExternVariable

Shader:getExternVariable Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets information about an 'extern' ('uniform') variable in the shader. Returns nil if the variable name doesn't exist in the shader, or if the video driver's shader compiler has determined that the variable doesn't affect the final output of the shader. Function Synopsis type, components, arrayelements = Shader:getExternVariable( name ) Arguments string name The name of the extern vari

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: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: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: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: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:isMotorEnabled

RevoluteJoint:isMotorEnabled Checks whether the motor is enabled. Function Synopsis enabled = RevoluteJoint:isMotorEnabled( ) Arguments None. Returns boolean enabled True if enabled, false if disabled. See Also RevoluteJoint