Artenus 2D Framework
Artenus Reference
com.annahid.libs.artenus.physics

RevoluteJointDescriptor

Provides an implementation of JointDescriptor that describes a revolute joint. Revolute joints provide single-axis rotation function used in many places such as door hinges, folding mechanisms, and other uni-axial rotation devices.
public class RevoluteJointDescriptor
extends JointDescriptor

Field Summary

Modifier and TypeField and Description
public static final TYPE
Type identifier for a revolute joint.

Constructor Summary

Modifier and TypeConstructor and Description
public RevoluteJointDescriptor(PhysicalBody b1, PhysicalBody b2, Point2D anchor)
Creates a RevoluteJointDescriptor between two bodies at the given anchor point.

Method Summary

Methods inherited from java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

TYPE
public static final TYPE
Type identifier for a revolute joint.

Constructor Detail

RevoluteJointDescriptor
public  RevoluteJointDescriptor(
    PhysicalBody b1,
    PhysicalBody b2,
    Point2D anchor
)
Creates a RevoluteJointDescriptor between two bodies at the given anchor point. The bodies will be "pinned" together at that point.
Parameters:
b1First body involved
b2Second body involved
anchorAnchor point