C# Class Box2DX.Dynamics.PrismaticJointDef

Prismatic 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
ReferenceAngle 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.

PrismaticJointDef ( ) : 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

PrismaticJointDef() public méthode

public PrismaticJointDef ( ) : 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

ReferenceAngle public_oe property

The constrained angle between the bodies: body2_angle - body1_angle.
public float ReferenceAngle
Résultat float

UpperTranslation public_oe property

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