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

FrontSpeed and WorldVel report 0 speed when driving through a switch car block (rally) #17

Open
RuurdBijlsma opened this issue Mar 7, 2024 · 4 comments

Comments

@RuurdBijlsma
Copy link

Video showcasing this:

https://youtu.be/qcbmAYBVZeo

In the log you see in this video, this code is running

void Update(float dt) {
    auto state = VehicleState::ViewingPlayerState();
    if(state is null) return;
    print("WORLD SPEED = " + state.WorldVel.Length());
    print("FRONT SPEED = " + state.FrontSpeed);
    if(state.FrontSpeed == 0)
        print("=================== SPEED WAS 000000000000000000 =====================");
}

This causes people that play on low fps using split speeds to see 0 speed occasionally when driving through a checkpoint that is in the same spot as a car switch ring.

Plugin showing the error:

DemoSpeed.zip

@codecat
Copy link
Member

codecat commented Mar 7, 2024

Are you sure this is a VehicleState issue? It sounds like something the game itself is lacking.

@RuurdBijlsma
Copy link
Author

hmm might be yea, I vaguely remember a vehicle state update fixing a simiilar issue with the snow car, which is why i thought this was a similar issue. However i'm not sure

@RuurdBijlsma
Copy link
Author

you can close this if you think it's not vehiclestate. I fixed the issue in splitspeeds in another way

@codecat
Copy link
Member

codecat commented Mar 7, 2024

Sounds good. I won't close this yet as I still kinda wanna look at it. But in general I believe this to be a Nadeo "issue". (There's a good change they might not see this as an issue themselves.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants