Box2D: b2MouseJointDef Struct Reference

Box2D

b2MouseJointDef Struct Reference

Mouse joint definition. More...

Inheritance diagram for b2MouseJointDef:

b2JointDef

List of all members.

Public Attributes

b2Vec2 target
 The initial world target point.
float32 maxForce
 The maximum constraint force that can be exerted to move the candidate body.
float32 frequencyHz
 The response speed.
float32 dampingRatio
 The damping ratio. 0 = no damping, 1 = critical damping.
float32 timeStep
 The time step used in the simulation.

Detailed Description

Mouse joint definition.

This requires a world target point, tuning parameters, and the time step.


Member Data Documentation

The initial world target point.

This is assumed to coincide with the body anchor initially.

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).


The documentation for this struct was generated from the following file:
  • b2MouseJoint.h

Generated on Sun Apr 13 15:21:27 2008 for Box2D by  doxygen 1.5.4