C# Class Box2D.Dynamics.Joints.WeldJointDef

Inheritance: JointDef
Show file Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
DampingRatio float
FrequencyHz float
LocalAnchorA Box2D.Common.Vec2
LocalAnchorB Box2D.Common.Vec2
ReferenceAngle float

Public Methods

Method Description
Initialize ( Body bA, Body bB, Vec2 anchor ) : void

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

WeldJointDef ( ) : Box2D.Common

Method Details

Initialize() public method

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

WeldJointDef() public method

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

Property Details

DampingRatio public property

The damping ratio. 0 = no damping, 1 = critical damping.
public float DampingRatio
return float

FrequencyHz public property

The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0.
public float FrequencyHz
return float

LocalAnchorA public property

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

LocalAnchorB public property

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

ReferenceAngle public property

The body2 angle minus body1 angle in the reference state (radians).
public float ReferenceAngle
return float