Class ContactPoint

Information about a single contact point during physics collision.

Constructors

Properties

_impulse: Vector3
_normal: Vector3
_position: Vector3
_separation: number

Accessors

  • get impulse(): Vector3
  • Impulse applied to the objects to keep them from penetrating. Divide by simulation step to get the force.

    Returns Vector3

  • get normal(): Vector3
  • Normal pointing from the second shape to the first shape.

    Returns Vector3

  • get separation(): number
  • Determines how far are the objects. Negative value denotes penetration.

    Returns number

Methods