mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 03:55:08 +02:00
give TextEntityItem a box collision shape
This commit is contained in:
parent
9f59addbc2
commit
b4bd60e979
2 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,6 @@ public:
|
||||||
// TODO: We need to get rid of these users of getRadius()...
|
// TODO: We need to get rid of these users of getRadius()...
|
||||||
float getRadius() const;
|
float getRadius() const;
|
||||||
|
|
||||||
void applyHardCollision(const CollisionInfo& collisionInfo);
|
|
||||||
virtual bool contains(const glm::vec3& point) const { return getAABox().contains(point); }
|
virtual bool contains(const glm::vec3& point) const { return getAABox().contains(point); }
|
||||||
virtual void computeShapeInfo(ShapeInfo& info) const;
|
virtual void computeShapeInfo(ShapeInfo& info) const;
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ public:
|
||||||
|
|
||||||
/// set dimensions in domain scale units (0.0 - 1.0) this will also reset radius appropriately
|
/// set dimensions in domain scale units (0.0 - 1.0) this will also reset radius appropriately
|
||||||
virtual void setDimensions(const glm::vec3& value);
|
virtual void setDimensions(const glm::vec3& value);
|
||||||
|
virtual ShapeType getShapeType() const { return SHAPE_TYPE_BOX; }
|
||||||
|
|
||||||
// methods for getting/setting all properties of an entity
|
// methods for getting/setting all properties of an entity
|
||||||
virtual EntityItemProperties getProperties() const;
|
virtual EntityItemProperties getProperties() const;
|
||||||
|
|
Loading…
Reference in a new issue