mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
finish hook alert for new entity collision shape
This commit is contained in:
parent
b2dfa49a6f
commit
499150bbed
2 changed files with 5 additions and 1 deletions
|
@ -917,6 +917,10 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& info) {
|
|||
}
|
||||
}
|
||||
|
||||
void RenderableModelEntityItem::setCollisionShape(const btCollisionShape* shape) {
|
||||
// TODO: generate collision mesh and update _model
|
||||
}
|
||||
|
||||
bool RenderableModelEntityItem::contains(const glm::vec3& point) const {
|
||||
if (EntityItem::contains(point) && _model && _model->isCollisionLoaded()) {
|
||||
return _model->getCollisionFBXGeometry().convexHullContains(worldToEntity(point));
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
virtual bool isReadyToComputeShape() override;
|
||||
virtual void computeShapeInfo(ShapeInfo& info) override;
|
||||
|
||||
void setCollisionShape(const btCollisionShape* shape) override {}
|
||||
void setCollisionShape(const btCollisionShape* shape) override;
|
||||
|
||||
virtual bool contains(const glm::vec3& point) const override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue