supermedium / moonrider

🌕🏄🏿 Surf the musical road among the stars. Side project built by two people in a few months to demonstrate WebXR.
https://moonrider.xyz
MIT License
569 stars 218 forks source link

handle obstacles at negative time positions #197

Closed digama0 closed 4 months ago

digama0 commented 4 months ago

Encountered this bug on https://beatsaver.com/maps/d8 , which contains walls at a negative time value, causing the curve position computation to index out of bounds. Fixed by making the function linearly extrapolate past the end points.

dmarcos commented 4 months ago

Thanks!