The point relative to the center of mass of bodyA which bodyA is constrained to.
Body that will be constrained in a similar way to the same point as bodyA. We will therefore get a link between bodyA and bodyB. If not specified, bodyA will be constrained to a static point.
Optional
pivotB: Vec3The point relative to the center of mass of bodyB which bodyB is constrained to.
Optional
maxForce: numberThe maximum force that should be applied to constrain the bodies.
Body A.
Body B.
Set to false if you don't want the bodies to collide when they are connected.
Equations to be solved in this constraint.
Pivot, defined locally in bodyA.
Pivot, defined locally in bodyB.
Static
id
Connects two bodies at given offset points.
Example