-
- 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 Vec2
pointAttachedTo
private Vec2
object1AttachmentPoint
-
Method Summary
Modifier and Type Method Description final Vec2
getPointAttachedTo()
final Vec2
getObject1AttachmentPoint()
final Unit
setObject1AttachmentPoint(Vec2 object1AttachmentPoint)
Unit
applyTension()
Applies tension to the body attached to the joint. Double
calculateTension()
Calculates tension between the two attachment points of the joints body and point. Double
rateOfChangeOfExtension()
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.
-
-
-
-