Sign in to follow this  
animats

How to make vehicles bounce from ban lines

Recommended Posts

Second Life vehicles stop and stick when they hit a ban line. It turns out they can escape by scripting.

banlineballmed.jpg.b4cfea60dab30fc6b668f2231667840a.jpg

Beach ball vs. parcel with object entry prohibited, security orb, red line, and barbed wire fence. Beach ball wins, and rolls around unharmed outside the parcel.

When a physical object hits a ban line, or an object-entry-prohibited area, STATUS_PHYSICS turns off. Scripts continue to run and can detect this. Scripts can then use llSetPos to get the object clear of the troublesome parcel, then turn STATUS_PHYSICS back on and go on moving.

To test this, I put code in the classic Linden beach ball. Works fine on both ban lines and invisible no-object-entry parcels. You get the usual popups about not being allowed to move into a parcel, but they don't stop you from leaving the parcel.

No-script parcels that allow object entry are still a problem.

I put this on Marketplace as "Beach Ball Ban Line Tester"  for a nominal L$10, with full perms, so others can play with this.

I'll be putting this in our motorcycles. I encourage boat builders to try this. This is exactly what's needed in narrow waterways with invisible no-entry areas.

Others must have discovered this. It's very simple. Why isn't it known, documented, and widely used?

  • Like 2

Share this post


Link to post
Share on other sites
4 hours ago, animats said:

Second Life vehicles stop and stick when they hit a ban line. It turns out they can escape by scripting.

banlineballmed.jpg.b4cfea60dab30fc6b668f2231667840a.jpg

Beach ball vs. parcel with object entry prohibited, security orb, red line, and barbed wire fence. Beach ball wins, and rolls around unharmed outside the parcel.

When a physical object hits a ban line, or an object-entry-prohibited area, STATUS_PHYSICS turns off. Scripts continue to run and can detect this. Scripts can then use llSetPos to get the object clear of the troublesome parcel, then turn STATUS_PHYSICS back on and go on moving.

To test this, I put code in the classic Linden beach ball. Works fine on both ban lines and invisible no-object-entry parcels. You get the usual popups about not being allowed to move into a parcel, but they don't stop you from leaving the parcel.

No-script parcels that allow object entry are still a problem.

I put this on Marketplace as "Beach Ball Ban Line Tester"  for a nominal L$10, with full perms, so others can play with this.

I'll be putting this in our motorcycles. I encourage boat builders to try this. This is exactly what's needed in narrow waterways with invisible no-entry areas.

Others must have discovered this. It's very simple. Why isn't it known, documented, and widely used?

The main problem isnt the vehicle getting stuck, its that once you hit a banline you usually get ejected from the vehicle, and the vehicle gets returned, either by SL quirk or land security. If you hit the banline just right so your avatar would be inside the parcel but the root of the vehicle has hit the banline, you get booted out, such as cars hitting a banline straight on, and etc. From the top you can bounce off like as when not seated, i bounced my airplane from the roof of banlines before, its fun. You get stuck as you describe if the root of the vehicle hits the banline but your avatar isnt in the banned parcel.

  • Thanks 1

Share this post


Link to post
Share on other sites

banlineescape2.thumb.png.9ae3a31057518c13bce89e1e47edeb2b.png

Ban line recovery in action

I put the code for this into a bike, and drove into some ban lines. First tests were successful.  Hit the ban line, got warning messages. Can't go forward, but can back out. Looks like it's going to work.

This ban line is on the outside of a sharp turn at a blind intersection on a major road in Heterocera. I've hit it twice by accident in the past.

There are more cases to test. Ban lines on region boundaries may be a problem. More later on that.

Our bikes will have this, of course. It should not be hard for power boats that can back up. For sailboats, it's going to be more complicated, but possible. Any solution for aircraft probably won't look realistic.

Edited by animats
Typo.
  • Like 2

Share this post


Link to post
Share on other sites
6 hours ago, IceCold Skytower said:

The main problem isnt the vehicle getting stuck, its that once you hit a banline you usually get ejected from the vehicle, and the vehicle gets returned, either by SL quirk or land security. If you hit the banline just right so your avatar would be inside the parcel but the root of the vehicle has hit the banline, you get booted out, such as cars hitting a banline straight on, and etc. From the top you can bounce off like as when not seated, i bounced my airplane from the roof of banlines before, its fun. You get stuck as you describe if the root of the vehicle hits the banline but your avatar isnt in the banned parcel.

So far, I'm not seeing those problems. I have the code in a bike. I've run into ban lines head-on. I've hit them from a shallow angle. I've hit them at high speed. I've been pushed into them by NPC zombies. Haven't been stuck or unseated yet.

  • Like 1

Share this post


Link to post
Share on other sites
On 6/14/2018 at 4:58 PM, IceCold Skytower said:

The main problem isnt the vehicle getting stuck, its that once you hit a banline you usually get ejected from the vehicle, and the vehicle gets returned, either by SL quirk or land security. If you hit the banline just right so your avatar would be inside the parcel but the root of the vehicle has hit the banline, you get booted out, such as cars hitting a banline straight on, and etc. From the top you can bounce off like as when not seated, i bounced my airplane from the roof of banlines before, its fun. You get stuck as you describe if the root of the vehicle hits the banline but your avatar isnt in the banned parcel.

I've found that situation. It comes from a dysfunctional combination of permission settings. If avatars are not allowed to enter, but object entry is allowed, the vehicle gets in and carries the avatar in. Then the avatar gets detected and ejected. Then the vehicle gets returned. I found some water-bordered parcels in Fritts set that way - avatars blocked by ban lines, object entry allowed to anyone, and, strangely, anyone can build. So you can build on land you can't enter.

There's also a rock in the middle of open water with scripts disabled, for no visible reason. Both of these parcels have friendly messages, so I suspect this is just people checking the wrong checkboxes. This area messed up a Drivers of SL drive recently.

Some permission combos should be prohibited by the system. Turning on a ban line probably ought to also turn object entry off. That would avoid confusion.

Edited by animats

Share this post


Link to post
Share on other sites
On 6/14/2018 at 7:26 PM, animats said:

banlineescape2.thumb.png.9ae3a31057518c13bce89e1e47edeb2b.png

Ban line recovery in action

I put the code for this into a bike, and drove into some ban lines. First tests were successful.  Hit the ban line, got warning messages. Can't go forward, but can back out. Looks like it's going to work.

This ban line is on the outside of a sharp turn at a blind intersection on a major road in Heterocera. I've hit it twice by accident in the past.

There are more cases to test. Ban lines on region boundaries may be a problem. More later on that.

Our bikes will have this, of course. It should not be hard for power boats that can back up. For sailboats, it's going to be more complicated, but possible. Any solution for aircraft probably won't look realistic.

Then again ban lines aren't realistic either.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this