|
RaptonX Zorger
Registered User
Join date: 26 Jan 2006
Posts: 79
|
04-29-2006 18:30
Is there a way to get an object to follow me, but move when I move without a delay, almost as if it were attatched. I know the regualr follow script has a delay....is there a way to change it, or do I have to use a compleatly differnt method?
|
|
Jigsaw Partridge
A man of parts
Join date: 3 Apr 2005
Posts: 69
|
04-29-2006 22:01
What do you need it to do that it wouldn't do if it were actually just 'attached'?
|
|
grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
|
04-29-2006 23:14
I was working on something like this, but I got distratced.
It used llSensorRepete on a physical object.
You have use both the current targets position and veloisty as part of a motion control loop.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
04-30-2006 11:47
Almost all follow scripts that I am aware of use some form of llSensorRepeat and llSetPos (or llMoveToTarget, if physical), repeatedly calling them if necessary. With this method, there will always be some kind of latency, so the movement of the follower will always lag behind your movements.
I don't know what you have in mind, but you might also try to use an invisible "cage" around your follower that is attached to your avatar and would drag it along with you (the follower would have to be physical in this case). Kinda seems redundant, if the goal is not using an attachment at all, but it is a thought. Not sure if it would work or not, though.
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-30-2006 12:04
You could "outsource" the movement via link messages to a number of different movement scripts. You could use multiple follow scripts, too, if you can't manage to dial down llSensorRepeat to a low enough level to suit you. People use this sort of thing to build massive vehicles and other moving objects. But if you want absolutely millisecond-perfect following then yeah, you want to use an attachment, or link the object to another attachment.
|