-
- All Implemented Interfaces:
public final class JointToPoint extends Joint
Class for a joint between a body and a point in world space.
-
-
Field Summary
Fields Modifier and Type Field Description private final Vec2pointAttachedToprivate Vec2object1AttachmentPoint
-
Method Summary
Modifier and Type Method Description final Vec2getPointAttachedTo()final Vec2getObject1AttachmentPoint()final UnitsetObject1AttachmentPoint(Vec2 object1AttachmentPoint)UnitapplyTension()Applies tension to the body attached to the joint. DoublecalculateTension()Calculates tension between the two attachment points of the joints body and point. DoublerateOfChangeOfExtension()Determines the rate of change between the attached point and body. -
-
Method Detail
-
getPointAttachedTo
final Vec2 getPointAttachedTo()
-
getObject1AttachmentPoint
final Vec2 getObject1AttachmentPoint()
-
setObject1AttachmentPoint
final Unit setObject1AttachmentPoint(Vec2 object1AttachmentPoint)
-
applyTension
Unit applyTension()
Applies tension to the body attached to the joint.
-
calculateTension
Double calculateTension()
Calculates tension between the two attachment points of the joints body and point.
-
rateOfChangeOfExtension
Double rateOfChangeOfExtension()
Determines the rate of change between the attached point and body.
-
-
-
-