API Docs for: 0.3.0
Show:

PrismaticConstraint Class

Constraint that only allows translation along a line between the bodies, no rotation

Constructor

PrismaticConstraint

(
  • bodyA
  • bodyB
  • options
)

Parameters:

  • bodyA Body
  • bodyB Body
  • options Object
    • maxForce Number
    • worldAxis Array
    • localAxisA Array
    • localAxisB Array

Item Index

Methods

Methods

update

()

Update the constraint equations. Should be done if any of the bodies changed position, before solving.