-
- All Implemented Interfaces:
public final class JointToBody extends Joint
Class for a joint between two bodies.
-
-
Field Summary
Fields Modifier and Type Field Description private Vec2object2AttachmentPointprivate Vec2object1AttachmentPoint
-
Method Summary
Modifier and Type Method Description final Vec2getObject2AttachmentPoint()final UnitsetObject2AttachmentPoint(Vec2 object2AttachmentPoint)final Vec2getObject1AttachmentPoint()final UnitsetObject1AttachmentPoint(Vec2 object1AttachmentPoint)UnitapplyTension()Applies tension to the two bodies. DoublecalculateTension()Calculates tension between the two attachment points of the joints bodies. DoublerateOfChangeOfExtension()Determines the rate of change between two objects. -
-
Method Detail
-
getObject2AttachmentPoint
final Vec2 getObject2AttachmentPoint()
-
setObject2AttachmentPoint
final Unit setObject2AttachmentPoint(Vec2 object2AttachmentPoint)
-
getObject1AttachmentPoint
final Vec2 getObject1AttachmentPoint()
-
setObject1AttachmentPoint
final Unit setObject1AttachmentPoint(Vec2 object1AttachmentPoint)
-
applyTension
Unit applyTension()
Applies tension to the two bodies.
-
calculateTension
Double calculateTension()
Calculates tension between the two attachment points of the joints bodies.
-
rateOfChangeOfExtension
Double rateOfChangeOfExtension()
Determines the rate of change between two objects.
-
-
-
-