SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
83 stars 18 forks source link

(Preview Branch) Bike front wheel does not align with the fork when steering #4637

Open Banditdot545 opened 1 month ago

Banditdot545 commented 1 month ago

I tried to adapt my bike to the new system, but when I steer it to the side, the wheel clips through the front fender

https://github.com/user-attachments/assets/4a836fbd-490e-4e55-aa58-72710b9756a8

I tried to "analyze" the new dirtbike, it seems to have the same issue as well. It seems that the bike fork/steer rotate less / more than the wheel?

https://github.com/user-attachments/assets/b92e97cf-4a53-4373-bd72-3fd9ad372ef2

Banditdot545 commented 1 month ago

image

SDGNelson commented 4 weeks ago

Nice job on your motorcycle! :) This might be related to all wheel up axis needing to be vehicle up axis. It projects the wheel model along the visual direction according to the actual physics position. In the meantime perhaps it would be possible to use constraints to attach the fender to the wheel? 🤔