Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

moving to another avatar

MistySue Wallaby
Registered User
Join date: 22 Apr 2005
Posts: 40
11-24-2005 18:23
Admittedly, I'm new to LSL, so this might be something simple.

I am wanting to find a specific agent, rotate the avatar wearing the prim to face the agent and go to it, but not collide. I've gotten the position of the agent looking for, but when moving to target, I collide and still trying to figure out how to rotate to face the other agent.
_____________________
Please visit us at:

Windows to the Soul Boutique - Tiretta (161,189,65)

Home to ~*Creations by Padme*~, Carpe Noctum, Ice Ice Baby, Pleasure Bound Studio, and Padme's Ponygirls

Thank you for your support :)
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
11-24-2005 18:42
Sadly, we don't at the moment have the ability to rotate an avatar via script.
As for not bumping into... move instead to a point a bit distant from the target, rather than to the point they're standing.
_____________________
MistySue Wallaby
Registered User
Join date: 22 Apr 2005
Posts: 40
11-24-2005 18:43
thanks, I'll try that
_____________________
Please visit us at:

Windows to the Soul Boutique - Tiretta (161,189,65)

Home to ~*Creations by Padme*~, Carpe Noctum, Ice Ice Baby, Pleasure Bound Studio, and Padme's Ponygirls

Thank you for your support :)
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
11-24-2005 21:39
From: MistySue Wallaby
thanks, I'll try that


in my probes (which do what you're wanting to do, only not as an attachment), I get the vector pointing towards the destination target, normalize the vector, and then multiply it by two less than the distance between the probe and it's target, resulting in the probe stopping two meters away from it's target.



[edit] a thought just occured to me; you might be able to come up with an avatar rotation hack using the llTargetSit command
MistySue Wallaby
Registered User
Join date: 22 Apr 2005
Posts: 40
11-25-2005 05:29
mmm... I'm getting the avatar wearing the attachment to move towards another avatar now, but with tau at 0.2, it's a major collision. with tau at 1.0 there's no collision, but the avatar doesn't even get within a meter from the other, usually even further than that.

I know there must be a way to get the moving avatar to the stationary one without collision as I see the hug and kiss attachments doing it. (of course, they also have the rotation problem)

oops, just found out about the llTarget and related event handlers... answered my own question
_____________________
Please visit us at:

Windows to the Soul Boutique - Tiretta (161,189,65)

Home to ~*Creations by Padme*~, Carpe Noctum, Ice Ice Baby, Pleasure Bound Studio, and Padme's Ponygirls

Thank you for your support :)