C# Class Box2D.Dynamics.Joints.MouseJointDef

Mouse joint definition. This requires a world target point, tuning parameters, and the time step.
Inheritance: JointDef
显示文件 Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
DampingRatio float
FrequencyHz float
MaxForce float
Target Box2D.Common.Vec2

Public Methods

Method Description
MouseJointDef ( ) : Box2D.Common

Method Details

MouseJointDef() public method

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

Property Details

DampingRatio public_oe property

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

FrequencyHz public_oe property

The response speed.
public float FrequencyHz
return float

MaxForce public_oe property

The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).
public float MaxForce
return float

Target public_oe property

The initial world target point. This is assumed to coincide with the body anchor initially.
public Vec2,Box2D.Common Target
return Box2D.Common.Vec2