IntersectionInformation

Variables

Name

Type

Description

hasIntersected

bool

true when the two objects collided.

normal

Math::vec3

The intersection normal from the first collider to the second.

depth

float

The penetration depth of the two collided objects.

relativePoints

std::vector<std::pair<Math::vec3>>

The pairs of relative intersection points of the two collided objects, in local-space. The first element of the pair is the intersection point relative to the first object’s center and the second element of the pair is the intersection point relative to the second object’s center.