GetObjectBoundingBox
From Onset Developer Wiki
Description
Gets the local bounds of the object.
Syntax
GetObjectBoundingBox(object)
Parameters
- object
The object identifier.
Return Value
- Returns 6 floats: MinX, MinY, MinZ, MaxX, MaxY, MaxZ
Min is the origin (pivot) minus the extent of the object. Max is the origin (pivot) plus the extent of the object.
Example
See example from the map editor on GitHub.
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture