public class

DistanceJoint

extends AbstractJoint<JointType extends Joint, JointDefType extends JointDef>
java.lang.Object
   ↳ sofia.graphics.AbstractJoint<JointType extends org.jbox2d.dynamics.joints.Joint, JointDefType extends org.jbox2d.dynamics.joints.JointDef>
     ↳ sofia.graphics.DistanceJoint

Class Overview

TODO document

Summary

Public Constructors
DistanceJoint(Shape firstShape, Shape secondShape, Anchor firstShapeAnchor, Anchor secondShapeAnchor)
TODO document
Public Methods
float getDampingRatio()
Anchor getFirstShapeAnchor()
TODO document
float getFrequency()
Anchor getSecondShapeAnchor()
TODO document
void setDampingRatio(float newDampingRatio)
void setFrequency(float newFrequency)
Protected Methods
DistanceJointDef createB2JointDef()
TODO document
[Expand]
Inherited Methods
From class sofia.graphics.AbstractJoint
From class java.lang.Object
From interface sofia.graphics.Joint

Public Constructors

public DistanceJoint (Shape firstShape, Shape secondShape, Anchor firstShapeAnchor, Anchor secondShapeAnchor)

TODO document

Public Methods

public float getDampingRatio ()

public Anchor getFirstShapeAnchor ()

TODO document

public float getFrequency ()

public Anchor getSecondShapeAnchor ()

TODO document

public void setDampingRatio (float newDampingRatio)

public void setFrequency (float newFrequency)

Protected Methods

protected DistanceJointDef createB2JointDef ()

TODO document

Returns
  • the subclass of JointDef that represents this specific type of joint