summaryrefslogtreecommitdiff
path: root/scene/3d/vehicle_body_3d.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-08-31 14:30:17 -0300
committerGitHub <noreply@github.com>2021-08-31 14:30:17 -0300
commit794606657745e77b89523f19c5e3b69c838f0cb7 (patch)
tree35126d4c7cf99e3c5e4b4bea2734682f96ee3a2c /scene/3d/vehicle_body_3d.h
parent0ee1179c1cce87c77efe70cd78399525444d587b (diff)
parent6a9ed72185a910f803fff91ef1f408ad91884d20 (diff)
Merge pull request #49471 from nekomatata/body-state-sync-callback
Clean physics direct body state usage in 2D and 3D physics
Diffstat (limited to 'scene/3d/vehicle_body_3d.h')
-rw-r--r--scene/3d/vehicle_body_3d.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/3d/vehicle_body_3d.h b/scene/3d/vehicle_body_3d.h
index 2c10205ea3..f29c3d89b7 100644
--- a/scene/3d/vehicle_body_3d.h
+++ b/scene/3d/vehicle_body_3d.h
@@ -192,7 +192,8 @@ class VehicleBody3D : public RigidBody3D {
static void _bind_methods();
- void _direct_state_changed(Object *p_state) override;
+ static void _body_state_changed_callback(void *p_instance, PhysicsDirectBodyState3D *p_state);
+ virtual void _body_state_changed(PhysicsDirectBodyState3D *p_state) override;
public:
void set_engine_force(real_t p_engine_force);