From 18103f2b898a30c459d30edf73048af651bbe6f3 Mon Sep 17 00:00:00 2001 From: Jon Ring Date: Thu, 18 Jul 2019 14:16:28 -0400 Subject: Add per-wheel throttle, brake, and steering for vehicles --- scene/3d/vehicle_body.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scene/3d/vehicle_body.h') diff --git a/scene/3d/vehicle_body.h b/scene/3d/vehicle_body.h index 9e3fe72282..914bfd54bd 100644 --- a/scene/3d/vehicle_body.h +++ b/scene/3d/vehicle_body.h @@ -70,7 +70,7 @@ class VehicleWheel : public Spatial { real_t m_deltaRotation; real_t m_rpm; real_t m_rollInfluence; - //real_t m_engineForce; + real_t m_engineForce; real_t m_brake; real_t m_clippedInvContactDotSuspension; @@ -137,6 +137,15 @@ public: float get_rpm() const; + void set_engine_force(float p_engine_force); + float get_engine_force() const; + + void set_brake(float p_brake); + float get_brake() const; + + void set_steering(float p_steering); + float get_steering() const; + String get_configuration_warning() const; VehicleWheel(); -- cgit v1.2.3