Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Lateral Velocity HUD...

Ryder Spearmann
Early Adopter
Join date: 1 May 2006
Posts: 216
05-31-2008 16:28
Hi all,

Got a great start on a simple lateral velocity HUD...

vector local_vel = llGetVel();
llSetPos(local_vel * .05);

It's simple... it just moves a HUD worn pointer around... in scale to the lateral velocity.

Woot!

Or not...

I want it to move the pointer position in reference to its velocity relative to itself, but as it is worn... it is somehow referenceing something else...

in other words: (ascii art coming)

*****************
* *
* O *
* *
* *
* *
* *
*****************

This would indicate we are going forwared and left. It tries... but it's frame of reference rotationally is not right... it ignores my rotation totally.


I tried multiplying the velocity by llGetRot(); and that did not work either.

How can I account for it's rotatation, as a worn HUD?

many thanks!

-Ryder-
Ryder Spearmann
Early Adopter
Join date: 1 May 2006
Posts: 216
05-31-2008 16:44
In case it matters (and it probably does), the frame is the root, and the pointer is a child to that.

ty all


-Ryder-