API Docs for: 0.4.0
Show:

FrictionEquation Class

Constrains the slipping in a contact along a tangent

Constructor

FrictionEquation

(
  • bi
  • bj
  • slipForce
)

Parameters:

Item Index

Methods

Methods

setSlipForce

(
  • slipForce
)
deprecated

Defined in src/constraints/FrictionEquation.js:73

Deprecated: Use .frictionCoefficient instead

Set the slipping condition for the constraint. The friction force cannot be larger than this value.

Parameters:

  • slipForce Number

Properties

contactEquation

ContactEquation

A ContactEquation connected to this friction. The contact equation can be used to rescale the max force for the friction.

frictionCoefficient

Number

The friction coefficient to use.

ri

Float32Array

Relative vector from center of body i to the contact point, in world coords.

rj

Float32Array

Relative vector from center of body j to the contact point, in world coords.

shapeA

Shape

The shape in body i that triggered this friction.

shapeB

Shape

The shape in body j that triggered this friction.

t

Float32Array

Tangent vector that the friction force will act along, in world coords.