⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

SpatialEntity.TryGetBounds3D

bool TryGetBounds3D(Pose& center, Vec3& size)

The oriented 3D bounding volume of this entity. When the entity has a front, like a screen or table top, the center pose’s Forward is the direction it faces. The center is usually the same as Pose, but can differ on entities with several pose components, like a table with both a top and a volume.

   
Pose& center The pose at the center of the volume.
Vec3& size The volume’s total size in meters, along the center pose’s axes.
RETURNS: bool False if this entity has no bounds3d component.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!