Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wheel flicker #172

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ private void Start()
// Set initial vehicle gear to Park to prevent movement
_vehicleController.data.bus[Channel.Input][InputData.AutomaticGear] = (int)Gearbox.AutomaticGear.P;

// reset vpp stuff for multi-scene loading (no idea why, but it works)
_vehicleController.enabled = false;
_vehicleController.enabled = true;

// Subscribe to events
_egoVehiclePositionManager = FindObjectOfType<EgoVehiclePositionManager>();
if (_egoVehiclePositionManager != null)
Expand Down Expand Up @@ -268,10 +264,8 @@ public void HandleSteer()

private void SetWheelSteerAngleDirectly(float angle)
{
foreach (var wheel in _frontWheels)
{
wheel.steerAngle = angle;
}
_vehicleController.wheelState[1].steerAngle = angle;
_vehicleController.wheelState[0].steerAngle = angle;
}

// temp method to simulate steering wheel input with delay, also inaccurate (mozzz)
Expand Down
Loading