Friday, March 28, 2014

Electrical Arc progress

Dylan and I worked on the Beam more in class yesterday. Now, not only does the beam target random locations in the air but a thicker beam contacts random locations on the ground. To make this work with prefabs (and also because his level has an organically shaped ground) we had to use a Trace for finding contact points then reset the target location back under the level (Z offset is now a fixed, negative number rather than a random float like before).
The Nodes for the other beam have been removed to make it screenshot nicer.
Oops, pretend that Toggle is hooked up to the emitter.
(I edited out walking away because it didn't toggle off. That explains why.)