high fps teleporting breaking grounded check.
tracked
jetdog8808
easy to reproduce in: https://vrchat.com/home/world/wrld_765d95e9-c9f6-4906-af91-7968aa935ef6
World is using this script: https://github.com/jetdog8808/Platform-Link
To reproduce the issue on desktop. Stand on a platform and set the fps cap to be higher then your screens refresh rate, or to unlimited.
seams to be a issue when the fps is higher then the fixed update rate.
I've also noticed a similar behavior in vr but its been harder to reproduce consistently.
a temp fix i found was to only teleport the play on fixedupdate, but that will cause stuttering which could make people sick.
Log In
jetdog8808
This canny can be deleted since its no longer accurate. At some point vrc changed it so when you setvelocity for the player it sets isgrounded to false, and i had not realized this had changed.
Main issue is that the player is drifting slightly on high fps. which still happened even with set velocity removed. seams like the code that sets the players velocity inverse of a moving platforms below the player is the cause. at high fps teleporting the player leaves them slightly away from that point causing the drift. (testing notes documented here: https://github.com/jetdog8808/Platform-Link/issues/3 )
I don't think this issue will affect many people so wont be making a canny about it. Got a work around for now.
StormRel
tracked