Thread

I know this was already discussed... (Bots)

I know this was already discussed... // Bots

1  |  

agent1

Jan 1, 2000, 10:20pm
.... but I can't find it so I'll ask again.

What would be involved in making a bot walk over bumps in a terrain? I am
reffering to the way they walk as if they are using shift. We are designing
a group of bots and it would seems much more natural if they walked over and
around the bumps instead of through them.


-Agent1

abbot pabisoko

Jan 2, 2000, 12:13am
(C++ solution)

you could store the elevation data in a 2d array, the first dimension being
x, second one being z...

so when your bot moves to a coord, it could look at the array, and grab the
elevation of that coordinate, and then move up to the appropriate
elevation...

after loading in the elevation stuff, you could do this:


aw_int_set(AW_MY_Y, elevationdata[aw_int(AW_MY_X)] [aw_int(AW_MY_X]);

or...if you jsut store data for every meter or so, you could do this:

int datax = aw_int(AW_MY_X) * .01;
int dataz = aw_int(AW_MY_Z) *.01;

aw_int_set(AW_MY_Y, elevationdata[datax][dataz]);

it owuldnt be as accurate, but it would be easier on your part =)


[View Quote]

sagaman

Jan 2, 2000, 4:38am
It depends on the context. If you are talking about a world that you
control, you could create a database of elevations manually and use that.

A more general solution might be to follow & record the position of an
avatar and use that to create a list of 'safe' positions. Assuming the
avatar isn't flying.

You can certainly read the position and elevations of objects, the problem
then becomes one of determining the true height & surface characteristics of
those objects and figuring out how to walk on them. All this becomes a huge
job. Don't forget to check if they are solid & visible.

One possible compromise might be to create a database of known flat objects
and make a point of only walking on those. Ok for flat worlds but stay
clear of hills, ramps and stairs.

I've started thinking in terms of droids. Bots that can control the browser
and drive an avatar around. A bot/avatar combination might be pretty cool
and at the very least would help you create an elevation map of a world.

Norm

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn