From f7021e57d7e682772dc98a42375fc09e820bce87 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 14 Jul 2020 16:16:08 +0200 Subject: [PATCH] Document VehicleBody3D and VehicleWheel3D limitations These classes have dozens of open bugs and missing features which may not be fixed anytime soon. It's probably better to document it upfront at this point. (cherry picked from commit 0493e7c106811e94ad8dbebb0b97c43b19e4023a) --- doc/classes/VehicleBody.xml | 1 + doc/classes/VehicleWheel.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/classes/VehicleBody.xml b/doc/classes/VehicleBody.xml index 3b99bf9ed10..672aa59855b 100644 --- a/doc/classes/VehicleBody.xml +++ b/doc/classes/VehicleBody.xml @@ -6,6 +6,7 @@ This node implements all the physics logic needed to simulate a car. It is based on the raycast vehicle system commonly found in physics engines. You will need to add a [CollisionShape] for the main body of your vehicle and add [VehicleWheel] nodes for the wheels. You should also add a [MeshInstance] to this node for the 3D model of your car but this model should not include meshes for the wheels. You should control the vehicle by using the [member brake], [member engine_force], and [member steering] properties and not change the position or orientation of this node directly. [b]Note:[/b] The origin point of your VehicleBody will determine the center of gravity of your vehicle so it is better to keep this low and move the [CollisionShape] and [MeshInstance] upwards. + [b]Note:[/b] This class has known issues and isn't designed to provide realistic 3D vehicle physics. If you want advanced vehicle physics, you will probably have to write your own physics integration using another [PhysicsBody] class. diff --git a/doc/classes/VehicleWheel.xml b/doc/classes/VehicleWheel.xml index b611d00da04..055ce5990f0 100644 --- a/doc/classes/VehicleWheel.xml +++ b/doc/classes/VehicleWheel.xml @@ -5,6 +5,7 @@ This node needs to be used as a child node of [VehicleBody] and simulates the behavior of one of its wheels. This node also acts as a collider to detect if the wheel is touching a surface. + [b]Note:[/b] This class has known issues and isn't designed to provide realistic 3D vehicle physics. If you want advanced vehicle physics, you will probably have to write your own physics integration using another [PhysicsBody] class.