diff options
author | ShyRed <ShyRed@users.noreply.github.com> | 2019-03-24 10:38:31 +0100 |
---|---|---|
committer | ShyRed <ShyRed@users.noreply.github.com> | 2019-04-23 18:06:48 +0200 |
commit | a9d4cde0f5abc399332dde0c7415b99a5796eb34 (patch) | |
tree | 1063803662cb51ad51ac81063a8e532fb3d30cc6 /modules/bullet/collision_object_bullet.h | |
parent | 6098a7f1914f64c77d689f54d5432095911b744f (diff) | |
download | redot-engine-a9d4cde0f5abc399332dde0c7415b99a5796eb34.tar.gz |
Allow adding disabled shapes
Adds the ability to directly add disabled shapes to a collision object. Before this commit a shape has always been assumed to be enabled and had to be disabled in an extra step.
Diffstat (limited to 'modules/bullet/collision_object_bullet.h')
-rw-r--r-- | modules/bullet/collision_object_bullet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/collision_object_bullet.h b/modules/bullet/collision_object_bullet.h index 2d4e5c4f1a..e65bc52caf 100644 --- a/modules/bullet/collision_object_bullet.h +++ b/modules/bullet/collision_object_bullet.h @@ -224,7 +224,7 @@ public: _FORCE_INLINE_ btCollisionShape *get_main_shape() const { return mainShape; } - void add_shape(ShapeBullet *p_shape, const Transform &p_transform = Transform()); + void add_shape(ShapeBullet *p_shape, const Transform &p_transform = Transform(), bool p_disabled = false); void set_shape(int p_index, ShapeBullet *p_shape); int get_shape_count() const; |