Table of Contents

Component Physics

(NOTE) A prismatic joint is used to create something similar to a piston. This is the 2d version of PrismaticJoint. This joint is used in 2d mode for increased performance and stability. The slider axis is projected onto the z axis (the z component is ignored) so that the objects can be arbitrarily far apart. The x and y rotations are also ignored since the objects are only allowed to rotate about the z axis. Add on definitions: Limit: A limit will provide a min/max translational distance for the two objects on the slider axis. Motor: A motor will push/pull the objects on the slider axis. Spring: A spring will make the slider axis springy at its limits.

Methods Properties Base Classes Derived Classes
Constructor LocalAxisA joint
SetWorldPoints LocalAxisB
LocalBasisA
LocalBasisB
LocalPointA
LocalPointB
WorldAxis
WorldPointA
WorldPointB

Properties


LocalAxisA : real3

The locally defined axis on object A .

var LocalAxisA : Real3

LocalAxisB : real3

The locally defined axis on object B .

var LocalAxisB : Real3

LocalBasisA : quaternion

The local space reference frame of object A . This frame is transformed to world space and then aligned with object B s frame .

var LocalBasisA : Quaternion

LocalBasisB : quaternion

The local space reference frame of object B . This frame is transformed to world space and then aligned with object A s frame .

var LocalBasisB : Quaternion

LocalPointA : real3

The local point of the anchor on object A .

var LocalPointA : Real3

LocalPointB : real3

The local point of the anchor on object B .

var LocalPointB : Real3

WorldAxis : real3

The axis in world space that is being rotated about .

var WorldAxis : Real3

WorldPointA : real3

The position of the anchor on object A given a position in world space

var WorldPointA : Real3

WorldPointB : real3

The position of the anchor on object B given a position in world space

var WorldPointB : Real3

Methods


PrismaticJoint2d : Void

constructor

Name Type Description
function PrismaticJoint2d()

SetWorldPoints : Void

Sets the position of the anchor on object A and B given a position in world space |Name|Type|Description| |---|---|---| |point|real3| |

function SetWorldPoints(point : Real3)