diff options
author | Andrea Catania <info@andreacatania.com> | 2020-06-21 12:48:40 +0200 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2020-06-24 08:54:11 +0200 |
commit | 7709a8349354b469361ec7e1429af0dc8af80b2a (patch) | |
tree | e513c29e2a8b00ef98425c8e5b946b0b1fa85890 /modules/bullet/space_bullet.h | |
parent | d360e6fb46fe425b7cc42a04adc62d1b564a0806 (diff) |
Optimized physics object spawn time and optimized shape usage when the shape is not scaled
Diffstat (limited to 'modules/bullet/space_bullet.h')
-rw-r--r-- | modules/bullet/space_bullet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/bullet/space_bullet.h b/modules/bullet/space_bullet.h index 5ff421ef52..11183b8550 100644 --- a/modules/bullet/space_bullet.h +++ b/modules/bullet/space_bullet.h @@ -110,6 +110,7 @@ class SpaceBullet : public RIDBullet { real_t linear_damp = 0.0; real_t angular_damp = 0.0; + Vector<CollisionObjectBullet *> collision_objects; Vector<AreaBullet *> areas; Vector<Vector3> contactDebug; @@ -147,6 +148,9 @@ public: void remove_area(AreaBullet *p_area); void reload_collision_filters(AreaBullet *p_area); + void register_collision_object(CollisionObjectBullet *p_object); + void unregister_collision_object(CollisionObjectBullet *p_object); + void add_rigid_body(RigidBodyBullet *p_body); void remove_rigid_body(RigidBodyBullet *p_body); void reload_collision_filters(RigidBodyBullet *p_body); |