Now with simple AI*DEMO*

Posted by Scott_AW on May 15, 2010, 5:02 p.m.

Wandering with no where to go. Some stop and think and other's go round in circles.

That's what I have so far, no agressive units yet, just wandering NPCs, fit for towns or as critters.

See it in action!

Although not in the vid, I have added turning as of late. Although it was a -pain-in-ass- kind of thing, but it works now and I'm happy.

And why not, here's a demo. Be sure to get the latest Evaldraw first. And let the INI file be replaced.

But this video does.

Comments

Juju 14 years, 6 months ago

How easy is it to do smoothly rotating objects in voxel engines?

Scott_AW 14 years, 6 months ago

In what I'm using now, not too hard. Just need to get used to radians. 0 to 3 * pi/2 for rotation.

Voxel display is built into the program, so I don't have to handle that.

Castypher 14 years, 6 months ago

I like the camera's motion. The only thing I can suggest is to give them a rotation animation when turning corners or turning around. If you can do that, it'll make simple AI look a lot better.

Juju 14 years, 6 months ago

3pi/2… Really? Radians, mathematically speaking, go up to 2pi for 360 degrees.

Scott_AW 14 years, 6 months ago

Yeah, but thats what I'm using, pi/2. That way 0 = 0, 1 = 90, 2 = 180 and 3 = 270.

I'll add a turning phase to smooth it out. I also will add simple diagonal movement too.

Juju 14 years, 6 months ago

Might as well use grads!

Scott_AW 14 years, 6 months ago

I may just predefine them too, save on calculations.

Ferret 14 years, 6 months ago

Amazing, this looks awesome