JointToPoint

class JointToPoint(b1: Body, pointAttachedTo: Vec2, jointLength: Double, jointConstant: Double, dampening: Double, canGoSlack: Boolean, offset: Vec2) : Joint

Class for a joint between a body and a point in world space.

Constructors

Link copied to clipboard
fun JointToPoint(b1: Body, pointAttachedTo: Vec2, jointLength: Double, jointConstant: Double, dampening: Double, canGoSlack: Boolean, offset: Vec2)

Functions

Link copied to clipboard
open override fun applyTension()

Applies tension to the body attached to the joint.

Link copied to clipboard
open override fun calculateTension(): Double

Calculates tension between the two attachment points of the joints body and point.

Link copied to clipboard
open override fun rateOfChangeOfExtension(): Double

Determines the rate of change between the attached point and body.

Properties

Link copied to clipboard
var object1AttachmentPoint: Vec2
Link copied to clipboard
val pointAttachedTo: Vec2