teaching machines

Unity + Git + GitHub Desktop

In this class I ask you to host your games on GitHub. This will allow you to share files and minimize damage when something breaks in your project. Follow the setup instructions below to create a remote repository on GitHub and tie it to your local Unity project. Remote Repository on GitHub We first need […]

Make a one-sided surface two-sided in Blender

I often model things like walls and leaves with only one side. Most computer graphics tools I’ve dealt with only show geometry that faces the viewer. This puts one-sided surfaces in a predicament. When the viewer goes behind them, the geometry disappears. One simple workaround to this problem is to duplicate your one-sided model and […]

Schedule something for future destruction in Unity

Problem: I have a game object, a prefab probably, that I instantiate and velocify. It goes off screen. I want it gone then. Solution: To expire a game object or component based merely on time, call Destroy(thingToDestroy, nSeconds). After nSeconds elapses, thingToDestroy will disappear.

Colliding with and mutating text in Unity

Problem: I want, in the Unity game engine, to shoot projectiles at text and decrement the number the text is displaying. Solution: Add a 3-D text game object. Add colliders to projectiles and the text. The collider on the 3-D text will automatically size itself around the bounds of the text. Implement OnTriggerEnter and update […]