move bounding box asset methods from ThermionAsset to ThermionViewer

This commit is contained in:
Nick Fisher
2025-06-23 11:57:15 +08:00
parent e8721b6133
commit abd1a1fd55
2 changed files with 43 additions and 22 deletions

View File

@@ -290,6 +290,17 @@ abstract class ThermionViewer {
///
Future<Aabb3> getRenderableBoundingBox(ThermionEntity entity);
/// Render the bounding box for [asset] with an unlit material.
///
Future showBoundingBox(ThermionAsset asset);
/// Removes the bounding box for [asset] from the scene.
///
/// If [destroy] is true, the geometry and material instance for the asset
/// will also be destroyed.
///
Future hideBoundingBox(ThermionAsset asset, { bool destroy = false});
///
/// Gets the 2D bounding box (in viewport coordinates) for the given entity.
///