libgdx API

com.badlogic.gdx.physics.box2d.joints
Class MouseJointDef

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.JointDef
      extended by com.badlogic.gdx.physics.box2d.joints.MouseJointDef

public class MouseJointDef
extends JointDef

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.JointDef
JointDef.JointType
 
Field Summary
 float dampingRatio
          The damping ratio.
 float frequencyHz
          The response speed.
 float maxForce
          The maximum constraint force that can be exerted to move the candidate body.
 Vector2 target
          The initial world target point.
 
Fields inherited from class com.badlogic.gdx.physics.box2d.JointDef
bodyA, bodyB, collideConnected, type
 
Constructor Summary
MouseJointDef()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

public final Vector2 target
The initial world target point. This is assumed to coincide with the body anchor initially.


maxForce

public float maxForce
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).


frequencyHz

public float frequencyHz
The response speed.


dampingRatio

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

Constructor Detail

MouseJointDef

public MouseJointDef()

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)