[Opensim-users] creating bots at negative elevation

paul emery pablo at lansing.com
Tue Jan 31 20:56:43 UTC 2012


I need to create some bots in our model of titanic which is underwater AND in
fact is at negative elevation. My trigger object has a notecard with the bot
information in it and a script with a touch_start event handler.
In the touch event are these lines of code.

vector npcPos = llGetPos()+<.5,0,0>;
pc = osNpcCreate("Mr.", "Bot", npcPos, "mycard");

What i find is that if the object is at zero elevation or above the bot is
created half a meter from the object's position. However, if the object is
at a negative elevation the bot is created at zero elevation and falls down
to the elevation of the trigger object. This is interesting. Note that if
the trigger object is up at any positive elevation the bot is created at
that elevation.

The problem is that if i try to create a bot at a negative elevation in a
room below deck i.e. that has a non-phantom roof the bot never can fall all
the way down because they are not able to fall through the roof. 

Any body got any ideas on how do deal with this. It does seem like expected
behavior would be to allow npcPos() to include negative elevation.


--
View this message in context: http://opensim-users.2152040.n2.nabble.com/creating-bots-at-negative-elevation-tp7241166p7241166.html
Sent from the opensim-users mailing list archive at Nabble.com.



More information about the Opensim-users mailing list