Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Attaching Vehicle to Moving Object...

Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
07-17-2005 21:17
...1) is it even possible to "attach" a vehicle to another moving object and force it to move with that object (i.e., through a set of setpos or movetotarget commands?)

...2) if possible, any hints on how something like this might be accomplished? I've attempted sensor and whispers combined with the passing of vector instuctions between the objects and some movetotarget and setpos loops...but doesn't seem to work out very well :)

Help is greatly appreciated in advance.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
07-17-2005 21:21
First, you might want to try better syncronization of the stuff we posted to your old thread. Say... have a listener trigger each move together? It works pretty well with my linkless prim animator.

Alternately, you could try llCreateLink, but you'll need to make sure to set the proper permissions first. It would also be very difficult to unlink two multiprim objects quickly in this manner.
_____________________
---
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
07-17-2005 21:37
Thanks again Jeffrey. I've really worked pretty hard with the stuff from my old thread and am pretty sure everything is set up to run right, just doesn't work out for one reason or another--which is why I was wondering if it was possible to force a vehicle into that type of movement.

I'll try the llCreateLink, as my vehicle object is actually only one prim--so that should work out very easily for detaches. It's funny, I was searchin' the WIKI for just such a command--I must have been really tired. Sorry.
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
07-18-2005 06:36
You can also try using a hinge or P2P link, although these must be made by hand (not scriptable). This is what I use to glue my Warthog to the Pelican.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
07-18-2005 12:38
Hmmm...I'll have to research hinges and P2Ps...thanks.