Rubeus::Awerere::ACollideData class

A container holding information related to detected collisions.

Constructors, destructors, conversion operators

ACollideData(const bool isIntersect, const float gap, const RML::Vector2D collisionNormal)
Constructor.
~ACollideData()
Destructor.

Public functions

auto getIsIntersect() const -> const bool&
Returns if the colliders have intersected.
auto getGap() const -> const float&
Returns the separation gap between the colliders.
auto getCollisionNormal() const -> const RML::Vector2D&
Returns the collision normal.

Function documentation

Rubeus::Awerere::ACollideData::ACollideData(const bool isIntersect, const float gap, const RML::Vector2D collisionNormal)

Constructor.

Parameters
isIntersect Bool containing if the colliders are intersecting.
gap The penetration distance of the collision.
collisionNormal The normal vector of the collision

const bool& Rubeus::Awerere::ACollideData::getIsIntersect() const

Returns if the colliders have intersected.

Returns The intersection boolean.

const float& Rubeus::Awerere::ACollideData::getGap() const

Returns the separation gap between the colliders.

Returns The gap in float.

const RML::Vector2D& Rubeus::Awerere::ACollideData::getCollisionNormal() const

Returns the collision normal.

Returns A Vector2D containing co-ordinates of the collision normal.