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
  • Contact normal in world space. The contact normal is the direction of the Impulse that is results from the collision. In simple cases, this is simply the surface normal at the contact position, e.g. the up direction when falling on flat ground. Note that this normal faces towards CollisionData::ThisCollider. This means for the objects falling on the ground, the normal will point straight up, while for the ground it will point straight down.

    Returns Vector3

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

    Returns number

Methods