C# Class Box2DX.Dynamics.LineJointDef

Line joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.
Inheritance: JointDef
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Свойство Type Description
enableLimit bool
enableMotor bool
localAnchor1 Box2DX.Common.Vec2
localAnchor2 Box2DX.Common.Vec2
localAxis1 Box2DX.Common.Vec2
lowerTranslation float
maxMotorForce float
motorSpeed float
upperTranslation float

Méthodes publiques

Méthode Description
Initialize ( Body body1, Body body2, Vec2 anchor, Vec2 axis ) : void

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.

LineJointDef ( ) : System

Method Details

Initialize() public méthode

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
public Initialize ( Body body1, Body body2, Vec2 anchor, Vec2 axis ) : void
body1 Body
body2 Body
anchor Box2DX.Common.Vec2
axis Box2DX.Common.Vec2
Résultat void

LineJointDef() public méthode

public LineJointDef ( ) : System
Résultat System

Property Details

enableLimit public_oe property

Enable/disable the joint limit.
public bool enableLimit
Résultat bool

enableMotor public_oe property

Enable/disable the joint motor.
public bool enableMotor
Résultat bool

localAnchor1 public_oe property

The local anchor point relative to body1's origin.
public Vec2,Box2DX.Common localAnchor1
Résultat Box2DX.Common.Vec2

localAnchor2 public_oe property

The local anchor point relative to body2's origin.
public Vec2,Box2DX.Common localAnchor2
Résultat Box2DX.Common.Vec2

localAxis1 public_oe property

The local translation axis in body1.
public Vec2,Box2DX.Common localAxis1
Résultat Box2DX.Common.Vec2

lowerTranslation public_oe property

The lower translation limit, usually in meters.
public float lowerTranslation
Résultat float

maxMotorForce public_oe property

The maximum motor torque, usually in N-m.
public float maxMotorForce
Résultat float

motorSpeed public_oe property

The desired motor speed in radians per second.
public float motorSpeed
Résultat float

upperTranslation public_oe property

The upper translation limit, usually in meters.
public float upperTranslation
Résultat float