Constraint

Constraint

Base class for constructing different types of constraints.

Constructor

(abstract) new Constraint(body1, body2, localA, localB)

Source:
See:
Parameters:
Name Type Description
body1 Body2D
body2 Body2D
localA Vector2
localB Vector2

Classes

Constraint

Members

body1 :Body2D

Source:
Type:

body2 :Body2D

Source:
Type:

dampening :number

Source:
Type:
  • number

localA :Vector2

Source:
Type:

localB :Vector2

Source:
Type:

(package) physicsType :number

Description:
  • Determine type of object this is in the world.
Source:
Determine type of object this is in the world.
Type:
  • number

stiffness :number

Description:
  • :
Source:
:
Type:
  • number

Methods

(protected) behavior(body1, body2, dt)

Description:
  • Will refactor this out later.
Source:
Parameters:
Name Type Description
body1 Body2D
body2 Body2D
dt number

update(dt)

Description:
  • Updates constraint forces
Source:
Parameters:
Name Type Description
dt number