summaryrefslogtreecommitdiff
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-11-02 11:05:03 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-11-15 13:13:27 -0500
commitf6d30f2ddc743ae3bb2006edf1e5672efc823cb7 (patch)
treeaa0e9db3533c9c3d1d9a3c217f96aaddac46ac58 /src/entities.cpp
parente6345402aa76834b320623d859761d5e0ff3c2b4 (diff)
physics shape initialization reordering
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index ba1ee5a..be7cb4a 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -630,8 +630,8 @@ void EntityType_Load(EntityType &et) {
btScalar *vertDataPointer = reinterpret_cast<btScalar *>(accVert.buffer_view->buffer->data);
vertDataPointer += accVert.buffer_view->offset;
new (shape) btConvexHullShape(vertDataPointer, accVert.count, accVert.stride);
- shape->initializePolyhedralFeatures();
shape->optimizeConvexHull();
+ shape->initializePolyhedralFeatures();
et.bt.shape = shape;
}
assert(shape != nullptr);