mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 20:24:13 +02:00
make sure to scale default octree shape collision to meters
This commit is contained in:
parent
ddf7e5604a
commit
c880f00a14
1 changed files with 1 additions and 0 deletions
|
@ -1373,6 +1373,7 @@ bool OctreeElement::findSpherePenetration(const glm::vec3& center, float radius,
|
||||||
|
|
||||||
bool OctreeElement::findShapeCollisions(const Shape* shape, CollisionList& collisions) const {
|
bool OctreeElement::findShapeCollisions(const Shape* shape, CollisionList& collisions) const {
|
||||||
AACube cube = getAACube();
|
AACube cube = getAACube();
|
||||||
|
cube.scale(TREE_SCALE);
|
||||||
return ShapeCollider::collideShapeWithAACubeLegacy(shape, cube.calcCenter(), cube.getScale(), collisions);
|
return ShapeCollider::collideShapeWithAACubeLegacy(shape, cube.calcCenter(), cube.getScale(), collisions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue