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.
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.