Struct CollisionInfo#

Struct Documentation#

struct CollisionInfo#

Struct of info for a collision query result.

Public Functions

inline bool hasContact() const#

Check whether there is a collision.

Returns:

True if there is a collision (>=1 contact points)

inline operator bool() const#

true if there are one or more contacts

Public Members

std::vector<Contact> contacts#

list of contact instances

Karana::Core::id_t part1#
Karana::Core::id_t part2#

Public Static Functions

static inline CollisionInfo &singleton()#

Get a global instance with static lifetime.

Returns:

The global CollisionInfo instance.