Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

anyplace for aome simple examples

Damet Neumann
Registered User
Join date: 21 Apr 2006
Posts: 140
07-04-2007 07:17
I been working with increasingly harder code
and would like to see how they make the trains and such that follow tracks.

Anyone know of freebie examples or tutorials to look at to get the basic idea? :D
Daten Thielt
Registered User
Join date: 1 Dec 2006
Posts: 104
07-04-2007 08:36
3 functions i find usefull when doing soming like this

llLookAtTarget
llMoveToTarget
llSetBoyancy(1.0);
llSensor

set the boyancy so that it dont float off the track
use the sensor to find the target try make it a 45 deg cone
llLookAtTarget so ur facing in the rirght direction
llMoveToTarget self exsplanetory

You may want to lock the x rot
and phsycial is the key
Damet Neumann
Registered User
Join date: 21 Apr 2006
Posts: 140
thanks
07-04-2007 09:00
guess ill just keep playing around those at least give me a starting point :)
grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
07-07-2007 09:55
I am working on a free open source system that can do that while staying very low lag.
In fact I've measured the "update" load on the sim to be lower when 4 people are riding it compared to having them walk.

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

The current version 0.4 does not actualy use the settings yet.

There is a free box at Charissa (210, 229,118)

I also have buses running in two sims.