Category Archives: Unity

Posts about my work with the Unity 3D game engine

Unity – How to make things see where they’re going

While developing a game, I wanted to enable characters to see where they’re going; that is, to tell them what they’re about to stumble into, without using colliders. The answer was to cast a Ray, angled slightly downward, in front of the character, so it can see if it’s about to walk into a tree, or off a cliff, before it happens. Continue reading Unity – How to make things see where they’re going

Unity project structure – reminds me of Flash Pro

unityThe more I play with Unity, the more it feels like the workflow of Flash Pro, whereby you attach scripts to instances of actors on the stage.

I’m not talking about the ‘pure code’ approach that all ActionScripters have become used to now; but the decentralised collection of independent scripts associated with timeline movieclip instances (behaviours, if you will).

So far, I’m liking it though. Unity (and its scripting IDE MonoDevelop) feels like all the best bits of Virtools, Flash Pro, FlashBuilder, Blender, Poser and 3D Studio MAX. I’m hoping that in future versions, Unity Editor and MonoDevelop will be more tightly integrated, or even combined. And, just maybe, replace JavaScript with a TypeScript option – although I like C# anyway.

For those who have played with any of the above and want a good tutorial to get stuck right into games development with Unity, this (intermediate level) tutorial is great.