BBMOD_AABBCollider

Extends BBMOD_Collider

constructor

new BBMOD_AABBCollider([_position[, _size]])

Description

An axis-aligned bounding box (AABB) collider.

Arguments

Name Type Description
_position Struct.BBMOD_Vec3 The position (center) of the AABB. Defaults to (0, 0, 0).
_size Struct.BBMOD_Vec3 The size of the AABB on each axis in both directions (e.g. new BBMOD_Vec3(2) would make a 4x4x4 box). Defaults to (0.5, 0.5, 0.5).

Properties

Name Description
Position The center position of the AABB.
Size The size of the AABB on each axis in both directions (e.g. new BBMOD_Vec3(2) would be a 4x4x4 box).

Methods

Name Description
FromMinMax Initializes the AABB using its minimum and maximum coordinates.
GetMax Retrieves the maximum coordinate of the AABB.
GetMin Retrieves the minimum coordinate of the AABB.

See also

BBMOD_FrustumCollider, BBMOD_PlaneCollider, BBMOD_SphereCollider

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on February 04, 2023 using GMDoc.