Table of Contents

Component Physics

(NOTE) A joint that models a wheel with shocks. This is the 2d version of WheelJoint. This joint is used in 2d mode for increased performance and stability. The motor axis is automatically set to the z axis, as that is the only axis objects can rotate about. Also, the translation on the z axis is ignored so that objects can be arbitrarily far apart. Add on definitions: Limit: A limit will provide a min/max angle on the motor axis. Motor: A motor will turn the objects about the motor axis. Spring: A spring will make the shock axis springy. A spring is attached by default to a wheel.

Methods Properties Base Classes Derived Classes
SetWorldPoints LocalBasisA joint
Constructor LocalBasisB
LocalPointA
LocalPointB
ShockAxis
WorldPointA
WorldPointB
WorldShockAxis

Properties


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

ShockAxis : real3

The shock axis of the wheel in object A's local space.

var ShockAxis : 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

WorldShockAxis : real3

The shock axis of the wheel in world space.

var WorldShockAxis : Real3

Methods


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)

WheelJoint2d : Void

constructor

Name Type Description
function WheelJoint2d()