Jump to content
Bloodsong Termagant

llMoveToTarget() Not Getting There?

Recommended Posts

so i have this swimming script, and it's using llMoveToTarget to make you swim around in the water.

 

i want to be able to artificially adjust the height of the avatar/animations in the water, so i have a menu thing with the +++ and the -- and stuff like that, to dial in the water surface height.  so that changes the depth by, say, 1 meter.  and i want it to move the avatar up 1 meter.... so i can see where it is.

 

the weird thing is, if i get in the water, and i'm standing (hovering?  falling?  technically, i'm 'inair' i guess) there, and i press these menu buttons... i don't move.  if i swim forwards or around a little bit, then click the button for the menu and work on the menu... it works fine.  so...???  what is going on?

 

what can cause llMoveToTarget to fail?  being in a menu dialogue??  already having an llMoveToTarget command on you?  (i put in llStopMoveToTarget before the new call; no help.)  you are in a certain minimum distance where llMoveToTarget thinks you're close enough to the target already?  (how small of an increment can it move you.  i started with .15 meter, but now i'm using .33 meter as the smallest increment.)  the damping?  do i need less?  or more.  i tried less, let me try more...

no, no help.

ugh.

 

Share this post


Link to post
Share on other sites

as you are observing MoveToTarget can appear to be a bit variable sometimes

a alternative is to combine its use with llApplyImpulse:  http://wiki.secondlife.com/wiki/LlApplyImpulse

a way to do it is use the arrows keys to steer, and PgUp and PgDn for altitude. Capping topmost altitude to llWater: http://wiki.secondlife.com/wiki/LlWater

both ApplyImpulse and MoveToTarget can sometimes appear to do nothing. This has to do with the energy consumption rate which is explained on the wiki

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...