Devs divided on scripted vehicles

Last week, our readers told Hypergrid Business that what they most wanted to see in OpenSim was vehicle physics.

Of course, vehicle physics. Everyone — or at least 52 percent of everyone — wants vehicle physics.

All I hear about everywhere I go is vehicle physics. Vehicle physics. Vehicle physics. Vehicle physics.

Then I noticed that everyone seems to have vehicles — there are vehicles on OSGrid, on InWorldz, on Island Oasis. I’ve got a little moving train up on a region on Kitely (thanks, Linda Kellie, for the free boardwalk OAR!).

And we clearly have physics. You step off a building and down you go. You set an object to “physical” and it topples over.

So what exactly do they mean by “vehicle physics” and why do we need it? How are “physics vehicles” different from “scripted vehicles”?

I asked a few experts on the subject — and the opinions came back divided.

All vehicles need scripts

When I asked Justin Clark-Casey about it — he’s a core OpenSim developer and president and founder of the Overte Foundation that oversees OpenSim — he said the term “scripted vehicle” was new to him.

Justin Clark-Casey

He suggested that physics-based vehicles might have a hard time at region border crossings.

But one thing that everyone agrees on is that vehicles need scripts — both in Second Life and in OpenSim. They just need slightly different scripts, since some Second Life vehicle commands work in OpenSim, and other don’t.

“All vehicles, including physical vehicles, are scripted,” said Karl Dreyer, CIO and co-founder of the Island Oasis grid. “After all, it’s the scripts that make them work.”

The big difference is that scripts in OpenSim do all the work of moving vehicles around, however, while the scripts in Second Life can off-load some of the work to the physics engine.

That means, in OpenSim, vehicles might not move with the terrain or be affected by gravity, he said. “Whereas physical vehicles do take on physical attributes when in use.”

There is also a third category of vehicles — wearables.

“These are just objects that you can wear that contain a pose animation and prims to resemble a car or plane, and give the appearance of a physical vehicle,” said Dreyer. “We have both kinds of vehicles in Island Oasis.”

One major advantage of the latter is that the wearable vehicles can cross borders between regions. Regular vehicles can only go between regions if they are all part of a single larger mega-region, he said.

Incompatible with Second Life

One thing that everyone agrees on is that you can’t bring a Second Life vehicle script to OpenSim.

David Daeschler

But if OpenSim had a compatible physics engine, you could, said InWorldz co-founder and software architect David Daeschler.

And that would make it easier for everyone.

“Physics-based vehicles are the vehicle standard in Second Life, so having compatible calls makes it easier to port scripts from there,” added Daeschler.

Plus, those scripts are easier to write, he added.

“Vehicles using physics-based movement put less of a burden on the scripter to understand physical movement and the math that is involved,” he said. “The scripter simply says, ‘This is a plane, and here are some properties of the plane,’ and the simulator and physics engine takes care of making the movement realistic.”

So you can still have vehicles in OpenSim — you’ll just have to update your scripts to do some of this extra math.

“The vehicle scripts in Second Life are not compatible in the OpenSim environment as they run two totally different physics engines,” agreed Dreyer. “A Second Life vehicle script will behave erratically in OpenSim. We have run into several situations where people have brought vehicle scripts from Second Life and on more than one occasion, have crashed the sim and required a restart.”

Computing power

The experts were divided as to whether “physical” or “scripted” vehicles were easier on servers.

“I have found that physical vehicles actually require more CPU power and the scripts can be quite complex,” said Dreyer.

But InWorldz’s Daeschler said that the opposite is in fact the case — physics-based vehicles are easier on the server.

“Under many circumstances they allow movement of a vehicle that uses less CPU power than would simulated physics movement being completed by a script,” he said. “Since a physics engine is heavily optimized for these types of calculations it burdens the simulator less.”

A race car on Island Oasis. That's me in the driver's seat trying to figure out where the brakes are.

For us non-techies, less burden on the simulator means less lag for visitors.

Who’s right? Clearly, we need to have some comparative testing by folks with no skin in the game. Unfortunately, I can’t think of anybody who fits that description.

And Bullet physics is no silver bullet, either. According to Daeschler, a lot of work remains to be done on that physics engine. To start with, it still makes avatars go sliding off of sims, he said. Then there’s a lot of work to be done to make it comparable to the currently-used ODE engine — and that’s even before they start on vehicle physics.

Meanwhile, I’d love to see more sample working vehicle scripts being distributed to the OpenSim community for people to play with, and to use to build their own vehicles.

The result would be a richer experience for all of us and instead of worrying so much about vehicle physics, we can go on to worry about things that matter more. Such as where to get really nice shoes.

Nebadon's racer kit.

Fortunately, one guy has already started things off. OSGrid president Michael Emory Cerquoni — also known as Nebadon Izumi in world — has shared some of his racing vehicles, distributed under a convenient Creative Commons license.

There are also some vehicle scripts shared on the OSGrid forums, including:

In fact, the OSGrid forums are a great place to go to for general OpenSim scripting information.

You can also pick up working vehicles at OSGrid’s Wright Plaza region — hypergrid-enabled, so you can take them home — or download vehicle bodies at OpenSim Creations.

Related Posts'

Maria Korolov

Maria Korolov is editor and publisher of Hypergrid Business. She has been a journalist for more than twenty years and has worked for the Chicago Tribune, Reuters, and Computerworld and has reported from over a dozen countries, including Russia and China. Follow me on Twitter @MariaKorolov.

11 Responses

  1.' Nebadon Izumi says:

    Here is an updated version of the train script you link to at the bottom of this article, this version actually works much better

  2.' Nebadon Izumi says:

    Here is an updated version of the train script you link to at the bottom of this article, this version actually works much better

  3. Gaga says:

    I brought a boat script from SL that worked reasonably good on my sim in OSgrid after a few tweaks. I also found Hiro’s sailing scripts work pretty good too and uses the default wind. In fact, I built a working 40 prims sloop, a 70 prim Brig and a 100+ prim frigate which includes a set of 4 cannons on one side that fire shots that can be detected by a script in another boat. Things can still go wrong sometimes and they wont cross borders properly (some have even got stuck on borders or ended up phantom ghost ships necessitating a region reboot). On mega regions they do have more room for sailing without the border problem of course. My experience of sailing in Second Life is less problematic but not without problems on borders believe me. I’ve taken a few un-scheduled flights!
    I have also often seen the captains of SL ships still wearing part of the boat as they sat in the tavern on the dock side *laughs*

    One thing I really like about Opensim vehicle physics is you can build working structures greater than 32 prims. Can’t do that in SL, hence the reason some captains end up still wearing part of their boat when they jump off it. So we don’t get that problem.

    I think, speaking for myself, when asking for vehicle physics we are talking about improvements in their stability. The worn vehicles are difficult to control and sail boats don’t always level out after hitting land or obstructions. The cam angle doesn’t return to right position always either and movement can be juddery but, by and large, I can work with what we have. The behaviors could definitely be better and more work needs to be done to permit vehicles to cross borders properly.

  4. Ener Hax says:

    / great post!!!  =)

  5. Gaga, I asked a carriage script in SL and payed a lot of money (for my scripting ignorance), now I’m interested to “translate” to OSSL? Can you tell me how to fix my script to run in OS? 

    Kind regards.

    • Gaga says:

      Sorry. I only just saw your post Vitual. Leave your full OSgrid or SL name in reply here and I will contact you and help if I can. No promises!

  6.' Didier Preud'homme says:

    Hi, i just want to say that on the Logicamp Grid we have physicals vehicles from about more than one year. I have myself modified the script from Nebadon to allow better usability on the Spa-Francorchamp modelisation circuit. You can see an exemple video here with an audi quattro :
    You can also visit the logicamp grid on


    Didier Preud’homme
    CEO Logicamp

  7. Theres a golf cart I have by Sarah Kline that runs extremely well in the grid’s sandbox, with ramps and jumps, 4 speeds.

  8.' Mike Hart says:

    I use the wearme version scripts for my car which work quite well on my 4 sim megaregion called Pro Racer Motorsports on grid (TGGrid). See video here :
    I would dearly love to have some scripting similar to what SL have for vehicles
    and it would be a great advantage to Opensim I believe.

  9.' Dave Bell says:

    Thanks for the summary.

    I hear that there is a .ini option to allow scripts to cross region boundaries. That’s pretty new, because it’s a difficult problem. InWorldz has their own solution, and there is a description of the general problems at

    (It looks as though Linden Labs have a very proprietary solution to the problem, and there is a different solution now in MONO)

    The big point in this is that there are a great many scripted items besides vehicles. I’m thinking animation overriders for one. Vehicles are obvious, but there are enough differences between SL and OpenGrid in that area that it’s a little hard to be enthusiastic about them. There’s a lot of building i can do on my private local grid, and then transfer to SL, but not Vehicles.