org.jbox2d.dynamics.joints
Class WeldJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.WeldJointDef
public class WeldJointDef
- extends JointDef
- Author:
- Daniel Murphy
Field Summary |
Vec2 |
localAnchorA
The local anchor point relative to body1's origin. |
Vec2 |
localAnchorB
The local anchor point relative to body2's origin. |
float |
referenceAngle
The body2 angle minus body1 angle in the reference state (radians). |
Method Summary |
void |
initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world
anchor point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localAnchorA
public final Vec2 localAnchorA
- The local anchor point relative to body1's origin.
localAnchorB
public final Vec2 localAnchorB
- The local anchor point relative to body2's origin.
referenceAngle
public float referenceAngle
- The body2 angle minus body1 angle in the reference state (radians).
WeldJointDef
public WeldJointDef()
initialize
public void initialize(Body bA,
Body bB,
Vec2 anchor)
- Initialize the bodies, anchors, and reference angle using a world
anchor point.
- Parameters:
bA
- bB
- anchor
-
Copyright © 2012. All Rights Reserved.