The type of transformable objects contained in the collection.
Creates an instance of WebaniCollection.
The animation class used for animating collections.
An array of additional world transforms that modify the object.
OptionalparentThe parent transformable object, if any.
Flag indicating whether to apply scale compensation for the parent object.
The world transform of the object, including position, rotation, and scale.
Flag indicating whether to use the origin as the center of rotation.
Calculates the center of the collection by averaging the global centers of the contained objects.
The global center of the collection.
The complete world transforms of the object's extra transformations, including position, rotation, scale, and rotational center.
An array of CompleteWorldTransform objects for the extra transforms.
The complete world transform of the object, including position, rotation, scale, and rotational center.
The complete world transform as a CompleteWorldTransform object.
A copy of the extra transforms array.
A new array with copies of the extra transforms.
The combined matrix of all extra transforms without scale compensation.
A Matrix4 object representing the combined matrix of all extra transforms.
Recursively flattens the collection, including all nested collections, into a single array of objects.
A flat list of all objects contained in the collection, including those in nested collections.
The local center of the object, which is [0, 0, 0] by default.
The local center of the object as a Vector3 object.
The model matrix of the object, including scale compensation if needed.
A Matrix4 object representing the model matrix with scale compensation.
The model matrix of the object without scale compensation.
A Matrix4 object representing the model matrix without scale compensation.
Creates a shallow copy of the collection, including a shallow copy of each contained object.
A new instance of WebaniCollection with shallow copies of the objects.
A copy of the main transform.
A new WorldTransform object that is a copy of the main transform.
Adds one or more objects to the collection.
The objects to add to the collection.
The index of the last object added.
Maps over each object in the collection and applies a function to transform them.
This returns a new WebaniCollection with the transformed objects.
A new collection with the transformed objects.
Removes the object at the specified index from the collection.
The index of the object to remove.
The collection instance after removing the object.
Scales the object by a specified factor.
The scaling factor as a Vector3 object.
Sets the position of the object.
The new position as a Vector3 object.
Sets the scale of the object.
The new scale as a Vector3 object.
Translates the object by a specified offset.
The offset to translate the object by.
Represents a collection of
WebaniTransformableobjects. AWebaniCollectionallows grouping multiple transformable objects together and provides methods for manipulating, accessing, and animating these objects.Collections can be treated as single objects in an animation context but allow for complex transformations and behaviors by containing multiple objects.