lotus_script/vehicle.rs
1pub use lotus_shared::vehicle::*;
2
3/// Returns the velocity over ground, measured along the vehicle.
4/// Any spinning wheels etc. are therefore not taken into account.
5pub fn velocity_vs_ground() -> f32 {
6 unsafe { lotus_script_sys::vehicle::velocity_vs_ground() }
7}
8
9/// Returns the acceleration over ground, measured along the vehicle.
10/// Any spinning wheels etc. are therefore not taken into account.
11pub fn acceleration_vs_ground() -> f32 {
12 unsafe { lotus_script_sys::vehicle::acceleration_vs_ground() }
13}