35 while (
parent !=
nullptr) {
49 const SceneNode& sceneNode = bComp->parentSGN()->getNode();
51 bComp->setRefBoundingBox(sceneNode.
getBounds());
56 bComp->appendChildRefBBs();
67 bComp->updateBoundingBoxTransform();
71 bComp->appendChildBBs();
76 bComp->parentSGN()->SendEvent(
83 if (!bComp->showAABB()) {
#define PROFILE_SCOPE_AUTO(CATEGORY)
static bool boundsChanged(const SceneNode &node) noexcept
static void setBoundsChanged(SceneNode &node) noexcept
static bool clearBoundsChanged(SceneNode &node) noexcept
const vec3< F32 > & getMax() const noexcept
const vec3< F32 > & getMin() const noexcept
BoundsSystem(ECS::ECSEngine &parentEngine, PlatformContext &context)
void PostUpdate(F32 dt) override
virtual ~BoundsSystem() override
void PreUpdate(F32 dt) override
void Update(F32 dt) override
void PreUpdate(F32 dt) override
void PostUpdate(F32 dt) override
void Update(F32 dt) override
vector< BoundsComponent * > _componentCache
void debugDrawBox(const I64 ID, IM::BoxDescriptor descriptor) noexcept
PlatformContext & context() noexcept
GFXDevice & gfx() noexcept
ProjectManager & parent() noexcept
const BoundingBox & getBounds() const noexcept
constexpr Optick::Category::Type Scene
Handle console commands that start with a forward slash.
constexpr U32 to_U32(const T value)