add getter for steering

This commit is contained in:
xxSeys1
2025-04-02 17:24:13 +02:00
parent 368ef9185b
commit 2e48be97b6
2 changed files with 11 additions and 0 deletions

View File

@@ -200,6 +200,11 @@ void WheeledVehicle::SetSteering(float value)
_steering = Math::Clamp(value, -1.0f, 1.0f);
}
float WheeledVehicle::GetSteering()
{
return _steering;
}
void WheeledVehicle::SetBrake(float value)
{
value = Math::Saturate(value);