-
- 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 Vec2
object2AttachmentPoint
private Vec2
object1AttachmentPoint
-
Method Summary
Modifier and Type Method Description final Vec2
getObject2AttachmentPoint()
final Unit
setObject2AttachmentPoint(Vec2 object2AttachmentPoint)
final Vec2
getObject1AttachmentPoint()
final Unit
setObject1AttachmentPoint(Vec2 object1AttachmentPoint)
Unit
applyTension()
Applies tension to the two bodies. Double
calculateTension()
Calculates tension between the two attachment points of the joints bodies. Double
rateOfChangeOfExtension()
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.
-
-
-
-