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.
How easy is it to do smoothly rotating objects in voxel engines?
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.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.
3pi/2… Really? Radians, mathematically speaking, go up to 2pi for 360 degrees.
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.Might as well use grads!
I may just predefine them too, save on calculations.
Amazing, this looks awesome