Thread

Gravity for Bots? (Bots)

Gravity for Bots? // Bots

1  |  

sagaman

Dec 15, 1999, 2:11am
My bots seem to defy gravity. Makes it hard to find the floor if it's not
at 0. Also hard to climb stairs.

Does anyone know how to fix this? I also seem to be in a permanant <Shift>
mode, so I can't just make the bot sink till it stops.

Norm

john viper

Dec 15, 1999, 9:22pm
You see, in the AW browser, there are set rules for the walking of avatars.
You can only go so fast, and you stop when you hit an object (unless you use
shift). These do not apply to bots.

Well if it is very important (this may slow your bots down significantly tho)
and if you write these bots yourself (this should work in script bots too, like
Xelagots and Hambots) you could somehow detect all the objects within, say, one
meter of your bot, then (depending on ur programming language/scripting bot)
write some way of detecting the objects around the bot so when it moves it
won't go thru anything but moves around it, although this would almost require
an artificial intelligence. Also this would be used for stairs, if it were a
stair object it could know this ahead of time, but you would have to know the
world very well, like if in AW you would program your bot so when it hits a
stair04m from the front it goes slantways.

And to slow your bot down (because they go at some hyperdrive speed) you could
make it so when it moves somewhere it doesnt go straight there, but it goes in
increments, like insead of saying "move from 0n 0w to 10n 0w" and it going
straight there at super speed, it could parse that into somethingn like "move
from 0n0w to 1n 0w" then "wait a half a second" then "move from 1n 0w to 2n 0w"
and so on.

Hmm this is a good idea I wil have to try it myself...

-John Viper

[View Quote] > My bots seem to defy gravity. Makes it hard to find the floor if it's not
> at 0. Also hard to climb stairs.
>
> Does anyone know how to fix this? I also seem to be in a permanant <Shift>
> mode, so I can't just make the bot sink till it stops.
>
> Norm

--
John Viper (A.K.A.: Jeffrey W. Tickle)
http://www.crosswinds.net/~ticklejw/ <- Ultra page of stuff (IE4+ req'd)
MAKE MONEY JUST FOR BROWSING THE INTERNET!!!!!
http://www.alladvantage.com/go.asp?refid=epy950
"When I became a Starfleet Captain, I swore I would never involve myself
in one of these
paradoxes: the Future is the Past, the Past is the Future.. It all gives me a
headache." -Kathryn
Janeway

sagaman

Dec 16, 1999, 1:41am
Well, I've got a walking bot. It walks very well at any arbitrary speed,
but all that does is make it look more like someones avatar. There's still
no collision detection, or how ever they do it for avatars. And climbing
stairs, no way!

I think there must be some missing events in the SDK. I would think you
should be able to emulate an avatar pretty completely. Too bad we can't get
a *browser* SDK and see how all that stuff is done.

> And to slow your bot down (because they go at some hyperdrive speed) you
could
> make it so when it moves somewhere it doesnt go straight there, but it
goes in
> increments, like insead of saying "move from 0n 0w to 10n 0w" and it going
> straight there at super speed, it could parse that into somethingn like
"move
> from 0n0w to 1n 0w" then "wait a half a second" then "move from 1n 0w to
2n 0w"
> and so on

I'm using one second time slices.

Norm

sagaman

Dec 16, 1999, 2:12am
Well, after cruising through the SDK docs some more I've realized that the
browser is probably doing all the collison detection and gravity simulation.
It has all the rendering smarts and can figure out where objects are and
what their surfaces are like. So, in order to duplicate that stuff in an
avatar, you'd have to write a lot of 3d code. A much bigger job than I care
to take on right now. Been there, done that. Sure would be nice if some of
that code were added to the SDK.

Norm

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