stenobot / Marimo

A game called Marimo
0 stars 0 forks source link

Conveyors V2 #47

Closed stenobot closed 7 years ago

stenobot commented 7 years ago

Made conveyors interactive via switches. Switches can now control speed (low to high), position (set by a horizontal offset), belt direction, and on/off.

Fixed some issues with how we are adding constant force. Turns out that constant force is almost identical to AddForce()... it just updates every frame for you once the component is added. So, it continues to accelerate. To fix this, I clamped the rigidbody velocity. This seems to work well.