Scaleform Studio Lua API Reference: scaleform.physics.RopeJoint object reference

scaleform.physics.RopeJoint object reference

Description

A rope joint that keeps bodies together in such a way that they act like ropes

Functions

Parameters

self :

scaleform.physics.RopeJoint

The rope joint currently in use.

Returns

scaleform.physics.JointLimitStates

The limit state of the rope joint currently in use.

Can be one of Limit_InactiveLimit, Limit_AtLowerLimit, Limit_AtUpperLimit, Limit_EqualLimits.

Parameters

self :

scaleform.physics.RopeJoint

The rope joint currently in use.

Returns

scaleform.Point

The anchor point.

Parameters

self :

scaleform.physics.RopeJoint

The rope joint currently in use.

Returns

scaleform.Point

The anchor point.

Parameters

self :

scaleform.physics.RopeJoint

The rope joint currently in use.

Returns

number

The length of the rope.

Parameters

self :

scaleform.physics.RopeJoint

The rope joint currently in use.

length :

number

The length of the rope.

Returns
This function does not return any values.
 scaleform.physics.Joint
An interface for the physics properties of the joint between two physics bodies.
 scaleform.physics.RopeJoint.limit_state (self) : scaleform.physics.JointLimitStates
Gets the limit state.
 self : scaleform.physics.RopeJoint
The rope joint currently in use.
 scaleform.physics.JointLimitStates
The limit state of the rope joint currently in use.
 scaleform.physics.RopeJoint
A rope joint that keeps bodies together in such a way that they act like ropes
 scaleform.physics.JointLimitStates
The limit state of a joint.
 scaleform.physics.RopeJoint.local_anchor_a (self) : scaleform.Point
Returns the local anchor point relative to body A.
 self : scaleform.physics.RopeJoint
The rope joint currently in use.
 scaleform.Point
The anchor point.
 scaleform.Point
Point should be in the form of a table {x=a, y=b}
{ PropertyType : string, x : number, y : number, }
 scaleform.physics.RopeJoint.local_anchor_b (self) : scaleform.Point
Returns the local anchor point relative to body B.
 self : scaleform.physics.RopeJoint
The rope joint currently in use.
 scaleform.Point
The anchor point.
 scaleform.physics.RopeJoint.max_length (self) : number
Gets the maximum length of the rope.
 self : scaleform.physics.RopeJoint
The rope joint currently in use.
 numberA numeric value.  scaleform.physics.RopeJoint.set_max_length (self, length)
Sets the maximum length of the rope.
 self : scaleform.physics.RopeJoint
The rope joint currently in use.
 length : number
The length of the rope.
A string of characters.Indicates a table.
This documentation uses the term table to mean an anonymous, temporary Lua table that contains named data values. You typically use these tables to pass data or settings to a function, or to hold data returned by a function.
Indicates an object.
This documentation uses the term object to mean a named Lua table or userdata value that maintains a state. Some object types may have multiple instances existing at the same time, each with its own state; these objects typically have creation functions or accessors that you must call in order to get an instance. Some object types have only one instance, which you always access through the object's name.
Indicates a named variable within a namespace, object or table; or an element within an enumeration.Indicates a code sample.Indicates an enumeration.
This documentation uses the term enumeration to mean a named Lua table that contains only a set of constant values. These values typically identify a predefined set of options for some setting or behavior. You might pass an enumeration value to a function, or test the value returned by a function against the items in the enumeration to see which option is currently set.
Indicates a named variable within a namespace or object that has a pre-set constant value.Indicates a category: a semantic grouping of related API elements.Indicates a namespace.
This documentation uses the term namespace to mean a named Lua table that exists in only one single instance, intended as a container for an interface of related objects, functions and data variables.
Indicates an output value returned by a function.Indicates a named function within a namespace or object.Indicates an input parameter for a function.