C# Class Box2D.Dynamics.Joints.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: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
EnableLimit bool
EnableMotor bool
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
LocalAxisA Box2D.Common.Vec2
LowerTranslation float
MaxMotorForce float
MotorSpeed float
ReferenceAngle float
UpperTranslation float

Méthodes publiques

Méthode Description
Initialize ( Body b1, Body b2, Vec2 anchor, Vec2 axis ) : void

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

PrismaticJointDef ( ) : Box2D.Common

Method Details

Initialize() public méthode

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

PrismaticJointDef() public méthode

public PrismaticJointDef ( ) : Box2D.Common
Résultat Box2D.Common

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

LocalAnchorA public_oe property

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

LocalAnchorB public_oe property

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

LocalAxisA public_oe property

The local translation axis in body1.
public Vec2,Box2D.Common LocalAxisA
Résultat Box2D.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