Skip to content

Commit 7efdb83

Browse files
committed
Remove call to PhysicsServer3D from Jolt Physics implementation
1 parent 0156b2b commit 7efdb83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/jolt_physics/joints/jolt_joint_3d.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#include "jolt_joint_3d.h"
3232

33+
#include "../jolt_physics_server_3d.h"
3334
#include "../jolt_project_settings.h"
3435
#include "../misc/jolt_type_conversions.h"
3536
#include "../objects/jolt_body_3d.h"
@@ -209,7 +210,7 @@ void JoltJoint3D::set_collision_disabled(bool p_disabled) {
209210
return;
210211
}
211212

212-
PhysicsServer3D *physics_server = PhysicsServer3D::get_singleton();
213+
JoltPhysicsServer3D *physics_server = JoltPhysicsServer3D::get_singleton();
213214

214215
if (collision_disabled) {
215216
physics_server->body_add_collision_exception(body_a->get_rid(), body_b->get_rid());

0 commit comments

Comments
 (0)