summaryrefslogtreecommitdiff
path: root/modules/bullet/bullet_physics_server.cpp
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-07-12 05:09:37 +0200
committerGitHub <noreply@github.com>2018-07-12 05:09:37 +0200
commit118d4f311516e678cb2d0a6565e1d8626f5e8815 (patch)
tree5b9b1d6b8d57563accc443735fb50a7418c898de /modules/bullet/bullet_physics_server.cpp
parent40f38216cf4b50b175bf9c70b35291d900db0f80 (diff)
parent0a36e974daeac1875d4e7551f4ba88ba8e1d1851 (diff)
Merge pull request #19540 from muiroc/cylinder
Cylinder resource and collision shape (bullet only)
Diffstat (limited to 'modules/bullet/bullet_physics_server.cpp')
-rw-r--r--modules/bullet/bullet_physics_server.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/bullet/bullet_physics_server.cpp b/modules/bullet/bullet_physics_server.cpp
index 6246a295ec..54431f93f1 100644
--- a/modules/bullet/bullet_physics_server.cpp
+++ b/modules/bullet/bullet_physics_server.cpp
@@ -113,6 +113,10 @@ RID BulletPhysicsServer::shape_create(ShapeType p_shape) {
shape = bulletnew(CapsuleShapeBullet);
} break;
+ case SHAPE_CYLINDER: {
+
+ shape = bulletnew(CylinderShapeBullet);
+ } break;
case SHAPE_CONVEX_POLYGON: {
shape = bulletnew(ConvexPolygonShapeBullet);