diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-18 17:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 17:36:24 +0200 |
commit | 03f240ba9309d0d8640eb061080bec92a23614c0 (patch) | |
tree | 417de18e71e934ecbf10fbb95b78fcf2df07714a /servers/physics_server_3d.h | |
parent | 3b09e90ae77dfe8b6ba5ea00cfc409f3c69fa2cc (diff) | |
parent | f072aa69a99a436b711afeb4b2b1c10b93883606 (diff) |
Merge pull request #60599 from rburing/rest_on_recovery_param
Diffstat (limited to 'servers/physics_server_3d.h')
-rw-r--r-- | servers/physics_server_3d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/physics_server_3d.h b/servers/physics_server_3d.h index c707f621b4..6a721f75a3 100644 --- a/servers/physics_server_3d.h +++ b/servers/physics_server_3d.h @@ -522,6 +522,7 @@ public: bool collide_separation_ray = false; RBSet<RID> exclude_bodies; RBSet<ObjectID> exclude_objects; + bool recovery_as_collision = false; MotionParameters() {} @@ -941,6 +942,9 @@ public: Array get_exclude_objects() const; void set_exclude_objects(const Array &p_exclude); + + bool is_recovery_as_collision_enabled() const { return parameters.recovery_as_collision; } + void set_recovery_as_collision_enabled(bool p_enabled) { parameters.recovery_as_collision = p_enabled; } }; class PhysicsTestMotionResult3D : public RefCounted { |