Skip to main content

AABB

APJS Script API reference for the AABB class.

TypeNameInterface Description
VariablesmaxX: number

Function: The max point-X of the box.

VariablesmaxY: number

Function: The max point-Y of the box.

VariablesmaxZ: number

Function: The max point-Z of the box.

VariablesminX: number

Function: The minimal point-X of the box.

VariablesminY: number

Function: The minimal point-Y of the box.

VariablesminZ: number

Function: The minimal point-Z of the box.

Functionsconstructor()

Functionsconstructor(min?: Vector3f, max?: Vector3f)

Parameters

min: - The minimum corner of the box.

max: - The maximum corner of the box.

Functionsclone(): AABB

Function: Returns a clone of this AABB.

Returns A new instance of AABB with the same properties as this one.

Functionsequals(v: AABB): boolean

Function: Returns whether this AABB is equal to the specified v AABB.

Parameters

v: - The AABB to compare with.

Returns A boolean indicating whether the two AABBs are equal.

Functionsintersects(other: AABB): boolean

Function: Determines if the current AABB intersects with another AABB.

Parameters

other: - The other AABB to check for intersection.

Returns A boolean indicating whether the two AABBs intersect.

FunctionstoString(): string

Function: Returns a string representation of the AABB.

Returns The string representation of the AABB.

Examples

constructor()

let obj = new APJS.AABB();

constructor(min?: Vector3f, max?: Vector3f)

let obj = new APJS.AABB();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use AABB here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies