CNC Machine Prototype

Keyboard Controls Only

This is a recreation of a CNC machine I made, trying to understand how they work and how I can reproduce the logic that keeps the gantry, carriage, and device within bounds. The actual CNC machine uses servos to move and sensors at the limits to determine absolute position. In Unity, I set up collision zones acting as digital sensors and have each "sensor" call a public method that informs the table manager when an axis has reached its max or min bounds.

The code is all my own, though I wouldn't have been able to get here if it weren't for the following texts:

As for the future of this project, I intended to cast the mouse pointer to screen space so that you control where the bit is with your mouse, but I've been struggling to get the model rigged, given the free time I have to do so. I have detailed plans on gamefying the project, so I'd like to return to this at some point to get it somewhere near a working rough. We shall see!


Full Code:

Leave a comment

Log in with itch.io to leave a comment.