Hello. I am trying to populate a quake3 map with a VERY basic bot, which will roam aimlessly around the castle. I have tried to think of a way to do this, and am stuck. All I can come up with is to continuously loop through a series of two waypoints, the first of which is the the models position at the time of starting the iteration, and the second of which is randomly generated. However, this poses the problem of gravity, for if the destination waypoint is hovering in space, then the bot appears to climb the invisible staircase I am growing to hate with a passion
Make the second waypoint a mesh with gravity. and turn visible to off.
Now the mesh will fall to the ground, and the bot can reach it without climbing in mid-air.
Or something like that.
Thanks for the tip, but the only way to move a node that I know about is to use the createFlyStraight, createFlyCircle, and createRotation Animators. These only take core::vector3df s as parameters, not meshes, so I don't know how I would do as you suggest. Are there any other mechanisms for moving a node?
Well, my idea would not include animators, but sin, cos and other funky functions.
Keep rotating the bot until it faces the target waypoint. Use sin and cos to walk forward.
I'm doing almost exactly that in my current game project.
I dont know any other way, but i'm new to irrlicht.