|
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
|
12-27-2008 13:15
Hi Everybody,
I was thinking of making a couples hud (kiss/cuddle) without poseballs.
Is it possible from script to get the 2 persons on the correct locations and angle to each other?
With lot of kiss/cuddle huds without poseballs the locations of the persons is often not good (to near to each other or wrong angle). I don't want to use poseballs because i want to use it also where ppl don't have build/rez permissions.
does anyone know if this is posible and give maybe some tips where to look at.
thanks in advance,
Kaylan
|
|
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
|
12-27-2008 18:32
Yes, it is certainly possible.
I believe there is a function called llPointAt or something that orients an agent to look at a specific location. I'm not sure if it works though, it might be defunct.
_____________________
Life is a highway... And I just missed my exit.
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
12-27-2008 18:48
From: Cypher Ragu I believe there is a function called llPointAt or something that orients an agent to look at a specific location. I'm not sure if it works though, it might be defunct. Unfortunately that function didn't make the cut out of beta. You can still fake it using avatar autopilot, attachments will accept physical movement commands and a little nudge in a given direction will get your avatar pointed that way. The usual problem with these kinds of setups is that only one avatar is wearing an attachment, so there's no good way to get the other avatar to automatically face the right way. The autopilot stuff is a little wonky thesse days too, avatars have a roundish collision shape since Havok 4 so you need to take more care not to bounce away. Height mismatches tend to be trouble too. But despite all the awkwardness (and maybe because of that!) they can still be fun.
|
|
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
|
12-27-2008 18:51
Well assuming you know the rotation of the avatar that isn't wearing the hud, you could use llRot2Fwd to find the position the "hugger" should be at. Then you could somehow move the "hugger" to that position... I'm not sure how to go about doing that though.
_____________________
Life is a highway... And I just missed my exit.
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
12-27-2008 19:04
Oh, llMovetoTarget will do the trick, and a sensor etc. to find the other avatar's spot.
|
|
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
|
12-27-2008 19:05
Does llMoveToTarget work with huds? =o I hadn't realized that lol.
_____________________
Life is a highway... And I just missed my exit.
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
12-27-2008 19:14
Sure, with that and llApplyImpulse etc., you can make a HUD or any attachment drag you all kinds of places. That's what a lot of those "dash" sorts of devices do too.
|
|
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
|
12-28-2008 01:10
Thanks Cypher and Victoria,
I will play with this and see if i can make something.
Think that to get the rotation/angle of the other avatar will be difficult.
|