C# Class Box2D.Dynamics.Joints.FrictionJointDef

Friction joint definition.
Inheritance: JointDef
Datei anzeigen Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
MaxForce float
MaxTorque float

Public Methods

Method Description
FrictionJointDef ( ) : Box2D.Common
Initialize ( Body bA, Body bB, Vec2 anchor ) : void

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

Method Details

FrictionJointDef() public method

public FrictionJointDef ( ) : Box2D.Common
return Box2D.Common

Initialize() public method

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
public Initialize ( Body bA, Body bB, Vec2 anchor ) : void
bA Body
bB Body
anchor Box2D.Common.Vec2
return void

Property Details

LocalAnchorA public_oe property

The local anchor point relative to bodyA's origin.
public Vec2,Box2D.Common LocalAnchorA
return Box2D.Common.Vec2

LocalAnchorB public_oe property

The local anchor point relative to bodyB's origin.
public Vec2,Box2D.Common LocalAnchorB
return Box2D.Common.Vec2

MaxForce public_oe property

The maximum friction force in N.
public float MaxForce
return float

MaxTorque public_oe property

The maximum friction torque in N-m.
public float MaxTorque
return float