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

Incorrect relative SetVelocity behaviour #68

Open
squiddingme opened this issue Jan 25, 2023 · 0 comments
Open

Incorrect relative SetVelocity behaviour #68

squiddingme opened this issue Jan 25, 2023 · 0 comments

Comments

@squiddingme
Copy link

squiddingme commented Jan 25, 2023

It's fairly common behaviour to do some variation of Networking.LocalPlayer.SetVelocity(Networking.LocalPlayer.GetVelocity() + impulse) to add an impulse to the player's existing velocity. This can be done every frame to add a continuous force to the player, which works in VRChat but does not work in client sim. In client sim, the player will instead drift away into the sky, This completely breaks many Udon scripts that rely on manipulating standard player physics (i.e. they do not hijack player movement by putting them in a station or teleporting every frame).

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

1 participant