Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Straight line with llMoveToTarget()?

jadz0r Conover
Registered User
Join date: 18 Jun 2006
Posts: 9
07-30-2006 03:50
The question looks kind of dumb, but I want to be able to move in a straight line over multiple axis, TOUCHING BUT NOT STAYING AT one point. For example, I get the position of X phantom object, I want to llMoveToTarget() to a position where I will be passing through that object. There has to be a way to do this. Help!
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
07-30-2006 22:54
From: jadz0r Conover
The question looks kind of dumb, but I want to be able to move in a straight line over multiple axis, TOUCHING BUT NOT STAYING AT one point. For example, I get the position of X phantom object, I want to llMoveToTarget() to a position where I will be passing through that object. There has to be a way to do this. Help!


CODE

vector PhantomX = llDetectedPos (0); // Or however you get the position of the object.
...
llMoveToTarget (PhantomX, 0.2);
llMoveToTarget (PhantomX, 10);


Have a look at the at this page:
http://secondlife.com/badgeo/wakka.php?wakka=at_target