aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/physics_joint.cpp
diff options
context:
space:
mode:
authorAndrea Catania2018-02-05 18:20:26 +0100
committerAndrea Catania2018-02-05 18:54:07 +0100
commita42765dadad77d4f4893d9ccf73b7cfefc1643bd (patch)
tree614566c3ecf4fa949417e158b82cbc6d97c03dd0 /scene/3d/physics_joint.cpp
parentea99b90a77228189d6dc38ab7b7ada967d668ed8 (diff)
downloadgodot-a42765dadad77d4f4893d9ccf73b7cfefc1643bd.tar.gz
godot-a42765dadad77d4f4893d9ccf73b7cfefc1643bd.tar.zst
godot-a42765dadad77d4f4893d9ccf73b7cfefc1643bd.zip
Diffstat (limited to 'scene/3d/physics_joint.cpp')
-rw-r--r--scene/3d/physics_joint.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/3d/physics_joint.cpp b/scene/3d/physics_joint.cpp
index fed6d76f6..2e9f1a241 100644
--- a/scene/3d/physics_joint.cpp
+++ b/scene/3d/physics_joint.cpp
@@ -71,8 +71,7 @@ void Joint::_update_joint(bool p_only_free) {
ba = body_a->get_rid();
bb = body_b->get_rid();
- if (exclude_from_collision)
- PhysicsServer::get_singleton()->body_add_collision_exception(body_a->get_rid(), body_b->get_rid());
+ PhysicsServer::get_singleton()->joint_disable_collisions_between_bodies(joint, exclude_from_collision);
}
void Joint::set_node_a(const NodePath &p_node_a) {