Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Vehicle Issue

Auron Reardon
Registered User
Join date: 30 Jun 2006
Posts: 41
09-15-2007 07:33
I'm working on a project that, among other things, includes a vehicle of type car. I built working versions of all the objects myself just to have something to script against and everything worked fine. Then my partner came in to build the *real* stuff (that actually looks good).

But now, when I put the vehicle script in her object, it won't move. No script errors - just no movement. I know my control events are happening because I have various sounds in them and they are all firing in response to keyboard input.

The real car is 31 prims so I found that I had to set it to physical before the agent sits. But just in case, I have torn it apart and re-linked with only 25 or so prims. Still didn't work.

The local axes in the root prim of the real car are facing the same direction as my working car.

I have removed piece by piece and, at times, when half torn apart, I have gotten it to work. But it is not consistent. In other words, I have not identified one prim that is the smoking gun.

I can drop this script in a block of wood and it works - but when I put it in our real car it won't. I don't know that much about vehicles or even physics for that matter. Is there anything I should be looking out for? I could post the script, but since it works in so many other situations I was thinking the issue had to do with the prims in the object.
Bounder Jimenez
programmer/designer
Join date: 12 Oct 2005
Posts: 45
09-16-2007 17:18
one thing, very simple.... after you are sitting in the car, edit it, lift it about a meter or so and then stop editing... it should be physical by that time (from script) and drop and now move.

just a possibility :)
Auron Reardon
Registered User
Join date: 30 Jun 2006
Posts: 41
09-16-2007 19:14
Bounder - that didn't work but doing it got me on the right track to the solution.

The vehicle has a flag flying on it that is flexible - this was keeping the script from successfully turning the object physical. But the script was failing silently - so I never knew what was going on until I lifted it up like you suggested and found that it didn't fall.

Thanks!
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
09-18-2007 10:41
Yup. This is an issue that I have come up against a few times. Combining physical objects with flexible path objects is a sure way to get things broken, often with no script warnings.

This should be better publicised.
_____________________
Tread softly upon the Earth for you walk on my face.