Add 2d variant of bounding box
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenVulkano::Scene
|
||||
[[nodiscard]] UniformBuffer* GetLabelBuffer() { return &m_labelBuffer; }
|
||||
[[nodiscard]] Math::Vector3f& GetPosition() { return m_position; }
|
||||
[[nodiscard]] bool IsBillboard() const { return m_settings.isBillboard; }
|
||||
[[nodiscard]] const Math::AABB& GetBoundingBox() const { return m_bbox; }
|
||||
[[nodiscard]] const Math::AABB2f& GetBoundingBox() const { return m_bbox; }
|
||||
std::optional<RayHit> Intersect(const Ray& ray) const override;
|
||||
|
||||
private:
|
||||
@@ -63,6 +63,6 @@ namespace OpenVulkano::Scene
|
||||
LabelDrawableSettings m_settings;
|
||||
LabelUniformData m_labelData;
|
||||
Math::Vector3f m_position = { 0, 0, 0 };
|
||||
Math::AABB m_bbox;
|
||||
Math::AABB2f m_bbox;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user