Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Vehicle or not?

Evil Zwiers
Registered User
Join date: 5 Feb 2007
Posts: 6
03-08-2007 04:22
Hi all,

I'm trying to make an vehicle that drives around and stops at certain predefined points on my island. I am unsure which is the right approach to acheiving what I want, my thoughts so far are:

1. Should I use a vehicle or a physical or non-physical object? I understand that physical objects may only be a max of 39 prims, my object is over 100 prims, I guess I could split it up but if we're using physics then I find it likely that they'll come apart or look strange.

2. The best (smoothest) movement functions seem to be for physical objects. Is it possible to acheive smooth motion, especially around corners, for a non-physical object?

3. Some of the roads that the vehicle has to run on are very tight, if it is physical I am concerned that it could get stuck.

I'm sure someone must have experience building a similar object, be it a bus, train or whatever. I'd be very interested to hear about your experience, to learn the best solution to this problem. Anyone who has any ideas about the best way to implement this, please reply or send me a PM...

Many Thanks,

John
Erwin Goldblatt
Registered User
Join date: 23 Dec 2006
Posts: 41
03-08-2007 04:57
Hi there

I spent 2 weeks developing a monorail which looked (in the part) realistic and was able to move thru tight spaces etc.

With a lot of help from these forums and some magic from Darien Caldwell (yay!) I got the item almost completed.

Essentially, I notecarded a heap of vectors with commands to do "something" at that point which then triggered functions in the script.

Using a physical object was the easiest (and yes i hit 32 limit too) with the caveat that when I stopped at a station I changed to "normal" objects rather than physical - which got around a load of thngs like people getting on etc.

All I can offer is that the answers are on here and on the wiki, for me - physical was the way to go as I was after a dgree of realism - I didnt want objects passing thru my monorail cars for example, but this inherantly suggests that collision may be an issue at the same time!

If you need assistance with the momement stuff, I used a script on this forum as a basis and then tweaked it around (a lot) to achieve what I needed.

I'll try to find the link.

Best of luck

Erwin
grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
03-10-2007 12:25
I went with a phantom physical system where the vehicle flys.

As for configuring it I created this open protocol system.
I have not posted the scripts since they are not complete yet.

https://wiki.secondlife.com/wiki/LSL_Protocol/AutoBahn