|
Brujo Elytis
Registered User
Join date: 23 Sep 2005
Posts: 3
|
07-20-2007 08:49
Hello everyone, I need some help with writing the "yank" function of a collar. I usually don't ask for help with programming but unfortunately I am totally stuck. I managed to get it working once with move to target but only once and never again. I am assuming that yank works with physics and move to target, I hope I am correct?
The problem I'm having with physics is it's not always turning on. I think it's due to the 0.1m error but I doubt it since a collar is pretty close to an avatar's neck. I've tried set pos but it just moves the object, not me.
As I said, I made it work once and never again. I'm totally stuck and can't seem to figure it out. I know that it's something simple and I will whap myself upside the head when I figure it out or someone helps me figure it out.
Any code snippets or further explanations of physics and/or move to target will help. Thank you very much in advance.
Brujo
|
|
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
|
07-20-2007 09:46
I think you'll have to post code.
There is nothing that keeps llMoveToTarget from moving a person except the target range and tau values AFAIK.
ie if tau is too small, nothing happens if the range is too far, nothing happens
Have you fiddled with these parameters recently? Perhaps your target is calculated wrong?
|
|
Resolver Bouchard
Registered User
Join date: 19 Jul 2006
Posts: 89
|
07-20-2007 10:21
llMoveToTarget() is a little tempermental, it'll work once but if you edit the script you need to detach and reattach the attachment.
|
|
Brujo Elytis
Registered User
Join date: 23 Sep 2005
Posts: 3
|
07-20-2007 11:19
Thanks for the help, I tried again and it worked. I don't know what was happening before but was probably the parameters and the detach / attach after editing.
Thanks again, much appreciated.
Brujo
|