Damn you proximity formula...oh it works now, yay!

Posted by Scott_AW on June 27, 2010, 12:07 a.m.

So one of the next parts of the EvalDraw version of The Crawl's engine is a proximity checker for objects that are both near the camera and in it's direct line of sight.

After trying a few things, reading some unhelpful stuff, and generally getting lost, I finally figured it out.

So now I have a nice function that says, "This object is in range", because it is.

One less thing to worry about.

Comments