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

Wheel API does not work as expected #2360

Open
1 task done
rendet4 opened this issue Nov 1, 2024 · 4 comments
Open
1 task done

Wheel API does not work as expected #2360

rendet4 opened this issue Nov 1, 2024 · 4 comments
Labels
Class: bug Something isn't working

Comments

@rendet4
Copy link

rendet4 commented Nov 1, 2024

Description of the problem

The Wheel API has several annoying bugs that prevent full control over transforming vehicle wheels.

  • setWheelCamber: works as expected
  • setWheelHeight: works as expected
  • setWheelTrackWidth: works as expected
  • setWheelRimRadius: does not work as expected
  • setWheelTyreRadius: does not work as expected
  • setWheelTyreWidth: does not work as expected

Reproduction steps

To reproduce the issue, you need to call the functions setWheelRimRadius, setWheelTyreRadius, and setWheelTyreWidth and confirm their malfunction.

Client-side:

alt.on('enteredVehicle', function (vehicle) {
    vehicle.setWheelRimRadius(0, 2)
    vehicle.setWheelRimRadius(1, 2)
    vehicle.setWheelRimRadius(2, 2)
    vehicle.setWheelRimRadius(3, 2)

    vehicle.setWheelTyreRadius(0, 2)
    vehicle.setWheelTyreRadius(1, 2)
    vehicle.setWheelTyreRadius(2, 2)
    vehicle.setWheelTyreRadius(3, 2)

    vehicle.setWheelTyreWidth(0, 2)
    vehicle.setWheelTyreWidth(1, 2)
    vehicle.setWheelTyreWidth(2, 2)
    vehicle.setWheelTyreWidth(3, 2)
})

Expected behaviour

It would be desirable to see both visual and physical changes in the radius (diameter) and width of vehicle wheels.

Additional context

No response

Operating system

Windows 11

Version

16.2.17-rc.11

Crashdump ID

No response

Confirmation of issue's presence

  • By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.
@rendet4 rendet4 added the Class: bug Something isn't working label Nov 1, 2024
@Doxoh
Copy link

Doxoh commented Nov 2, 2024

@rendet4

please add the information, if its server or client code

and add a example code
spawn vehicle and use method with example parameters

@rendet4
Copy link
Author

rendet4 commented Nov 2, 2024

@rendet4

please add the information, if its server or client code

and add a example code

spawn vehicle and use method with example parameters

Done!

@Doxoh
Copy link

Doxoh commented Dec 10, 2024

should be fixed in 16.2.28-rc.1

@Doxoh Doxoh closed this as completed Dec 10, 2024
@xxshady
Copy link
Contributor

xxshady commented Dec 18, 2024

@rendet4 reported that it still doesn't work as expected

@xxshady xxshady reopened this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants