|
Mimi Lusch
Registered User
Join date: 18 Apr 2007
Posts: 3
|
05-04-2008 20:44
im trying to get an object to follow a set path, much like a ship. im trying to use a combination of llLookAt and llMoveToTarget to move from point to point. the wiki says that llLookAt seems to not have any effect on a non-physical prim, but it seems to me like it ONLY works when non physical. which gives me a problem because then i cant move it.
i would put in lines that makes and takes physical status but i know this isnt supposed to work like this.
any suggestions?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-04-2008 23:52
llLookAt() and llRotLookAt() should both work for both physical and non-physical objects. You haven't kept the object from rotating (around STATUS_ROTATE_X, STATUS_ROTATE_Y, and/or STATUS_ROTATE_Z) with llSetStatus() have you? http://www.lslwiki.net/lslwiki/wakka.php?wakka=llLookAthttp://www.lslwiki.net/lslwiki/wakka.php?wakka=llRotLookAthttp://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetStatus
|
|
Mimi Lusch
Registered User
Join date: 18 Apr 2007
Posts: 3
|
05-05-2008 10:26
i did restrict these rotations. but i did because without the, after the move target, they would spasm in the air
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-05-2008 10:37
From: Mimi Lusch i did restrict these rotations. but i did because without the, after the move target, they would spasm in the air Keep in mind that llLookAt() tries to keep the object looking at a particular spot in space. If the object is AT that spot, it'll go a little nutso (especially if it wanders by slight amounts). You might want to try llRotLookAt() instead (or once you get close enough to your destination, or possibly even just llStopLookAt()), which simply rotates the object to a fixed orientation and then keeps it there.
|
|
Mimi Lusch
Registered User
Join date: 18 Apr 2007
Posts: 3
|
05-05-2008 10:54
ah thanks
|