summaryrefslogtreecommitdiff
path: root/scene/3d/collision_object_3d.h
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2022-08-11 01:45:36 +0900
committerSilc Renew <tokage.it.lab@gmail.com>2022-08-18 08:10:31 +0900
commitb31115cdc1c635e0e33f7a1e053dc2d944bcf521 (patch)
tree7ccae68b9b7a5888b5215d415827043b16d52699 /scene/3d/collision_object_3d.h
parentdbd15243621ec595742b18abc4c26f3cb2e00f3d (diff)
Add collision weight to PhysicsBody for penetrations must be avoided
Co-authored-by: Juan Linietsky <reduzio@gmail.com>
Diffstat (limited to 'scene/3d/collision_object_3d.h')
-rw-r--r--scene/3d/collision_object_3d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/collision_object_3d.h b/scene/3d/collision_object_3d.h
index 3ec3aa0fc1..3f0d070db4 100644
--- a/scene/3d/collision_object_3d.h
+++ b/scene/3d/collision_object_3d.h
@@ -47,6 +47,7 @@ public:
private:
uint32_t collision_layer = 1;
uint32_t collision_mask = 1;
+ real_t collision_priority = 1.0;
bool area = false;
@@ -125,6 +126,9 @@ public:
void set_collision_mask_value(int p_layer_number, bool p_value);
bool get_collision_mask_value(int p_layer_number) const;
+ void set_collision_priority(real_t p_priority);
+ real_t get_collision_priority() const;
+
void set_disable_mode(DisableMode p_mode);
DisableMode get_disable_mode() const;