com.badlogic.gdx.physics.box2d
Class Joint

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.Joint
Direct Known Subclasses:
DistanceJoint, FrictionJoint, GearJoint, MouseJoint, PrismaticJoint, PulleyJoint, RevoluteJoint, RopeJoint, WeldJoint, WheelJoint

public abstract class Joint
extends Object


Method Summary
 Vector2 getAnchorA()
           
 Vector2 getAnchorB()
           
 Body getBodyA()
          Get the first body attached to this joint.
 Body getBodyB()
          Get the second body attached to this joint.
 Vector2 getReactionForce(float inv_dt)
           
 float getReactionTorque(float inv_dt)
          Get the reaction torque on body2 in N*m.
 JointDef.JointType getType()
          Get the type of the concrete joint.
 Object getUserData()
          Get the user data
 boolean isActive()
          Short-cut function to determine if either body is inactive.
 void setUserData(Object userData)
          Set the user data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public JointDef.JointType getType()
Get the type of the concrete joint.


getBodyA

public Body getBodyA()
Get the first body attached to this joint.


getBodyB

public Body getBodyB()
Get the second body attached to this joint.


getAnchorA

public Vector2 getAnchorA()

getAnchorB

public Vector2 getAnchorB()

getReactionForce

public Vector2 getReactionForce(float inv_dt)

getReactionTorque

public float getReactionTorque(float inv_dt)
Get the reaction torque on body2 in N*m.


getUserData

public Object getUserData()
Get the user data


setUserData

public void setUserData(Object userData)
Set the user data


isActive

public boolean isActive()
Short-cut function to determine if either body is inactive.



Copyright © 2013. All Rights Reserved.