LPModel
in package
Table of Contents
Properties
- $aabb : AABB
- The axis aligned bounding box of the model (all meshes)
- $meshes : array<string|int, LPMesh>
- An array of meshes the model is composed of
- $name : string
- The model name
Methods
- __construct() : void
- Constructor
- recalculateAABB() : void
- Recalculates the AABB of the model based on the meshes
Properties
$aabb
The axis aligned bounding box of the model (all meshes)
public
AABB
$aabb
$meshes
An array of meshes the model is composed of
public
array<string|int, LPMesh>
$meshes
$name
The model name
public
string
$name
Methods
__construct()
Constructor
public
__construct(string $name[, array<string|int, LPMesh> $meshes = [] ]) : void
Parameters
- $name : string
- $meshes : array<string|int, LPMesh> = []
recalculateAABB()
Recalculates the AABB of the model based on the meshes
public
recalculateAABB() : void