Static
calculateCalculates the position of a child relative to its parent node's rotation.
The parent node.
The local position.
The transformed global position.
Static
calculateCalculates the rotation of a child relative to its parent node's rotation.
The parent node.
The child's rotation.
The relative rotation as Euler angles.
Static
configureConfigures the mesh's position, rotation, scale, and bounding info based on the config.
The array of meshes to configure.
The configuration object.
Static
createCreates a mesh loading task for the assets manager.
The game object configuration.
The mesh name.
The mesh file.
Callback when the mesh is loaded.
Static
createCreates a Vector3 from a plain object with _x, _y, _z properties.
The data object.
The created Vector3 or undefined if data is invalid.
Static
getReturns the size of a mesh's bounding box.
Static
getReturns the center and radius of a mesh's bounding sphere.
Static
getCalculates the total bounding box for an array of meshes.
Static
getCalculates the total bounding sphere for an array of meshes.
Static
loadLoads a sound file using the assets manager.
The assets manager.
The sound name.
The sound file path.
Callback when the sound is loaded.
Optional
spatial: booleanWhether the sound is spatialized.
Utils provides static utility functions for mesh, vector, and asset operations.