top of page

Industry Project - Factory Builder

My Unity bootcamp project involved my team creating a VR factory builder experience based on the company's specs, with real-world applications.

 

We had scheduled client meetings for progress updates during the project. The core specs were a large room, free movement, and component placement options. We had creative freedom to explore potential further directions.

​

As lead programmer, I was responsible for several functions but my main task was implementing object placement and the conveyor belt system.

Place Belts

Place Outputs

Place Input

Place Items onto Input 

Delete Belt will Remake Paths

The system had three placeable components with the following behaviors:

  • Components: inputs, belts, and outputs. Inputs path find to connected outputs using belts to move items from inputs to outputs.

  • Components automatically store a list of adjacent components for object transfer upon placement.

  • Components store adjacent in separate previous and next lists to determine whether items are being received from or delivered to.

  • Two recursive functions are used to find a path from input to outputs through all the adjacent belts.

  • The first recursive function starts at the input and triggers the same function in all adjacent, passing itself as a parameter to be stored as a previous so it won't be triggered again. This continues out in every direction until either a dead end or an output is reached.

  • If an output is found it triggers the second recursive function that behaves similarly to the first but starting from the output and passing itself to be stored as a next instead.

  • This results in a chain of of belts, each having a direction and together making a complete path.

 

Although I encountered several challenges, I was able to produce a fully working prototype that could handle almost any intricate arrangement of belts and multiple outputs before the deadline.

bottom of page