|
Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
|
11-10-2007 14:14
I want to make a script that will let an object navigate from one point to another. This would be easy except I don't want to pass through other objects I want to be able to go around them. I have the object "lookat" the destination point and take a narrow scan. I can detect an object that might be in the path but I cant really tell since I don't see a way to get the size of the object in the path.
Does anyone have an idea how to navigate around objects? I am not looking for code exactly but maybe some creative concepts on how this might be accomplished.
|
|
Ed Gobo
ed44's alt
Join date: 20 Jun 2006
Posts: 220
|
11-10-2007 19:27
This will be extremely slow. Wait for mono!
|
|
Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
|
?
11-11-2007 07:56
They are about a year or more late delivering that. I thought they gave up on Mono.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-11-2007 08:27
From: Sundi Metropolitan They are about a year or more late delivering that. I thought they gave up on Mono. Yeah don't hold your breath waiting. Object is detected in your flight path, sweep your scanner side to side. hmmmm, maybe 5 degrees at a step???? You will still have to watch for no script/ban lines though. The consensus suggested many times here for them is to shoot out an object to see if it gets stopped somewheres ahead. Have fun scripting it, gonna be several long sleepless nights ahead. Another solution would be to go around and create some paths while flying. Record waypoints along the way. Not exactly sponataneous, but it would work if you wanted to create some type of transportation system in your sim for example.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
11-11-2007 10:14
Maybe....
Set the object physical - "drive" it using llApplyImpulse - detect any collisions and change angle of drive until collisions are not detected. When the path is "clear", revert to the original direct path by turning back until collisions are no longer detected.
/esc
_____________________
http://slurl.com/secondlife/Together
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-11-2007 14:57
when detecting object ahead, turn right 5deg, scan again, if no object detected, move forward an increment, then rotate back toward your goal in 5deg increments while scanning, if your scanner isn't to long this should keep you from moving too far around small objects, this should trice the righ hand contour of the object in your path...
you could have it sweept the scan both left and right to see if there is a clearer path to that side, and use boolean swithing to detrmine mode left contour, right contour.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|