|
Ludvaig Lindman
Registered User
Join date: 2 Feb 2007
Posts: 78
|
08-30-2007 13:12
I try to set a certain position via script. So i tried this way:
First i set a vector like: vector myposition = <X,Y,Z>; Then i set this vector as new position: llSetPos(myposition);
But when i click the prim it doesn't go to the position i want it, but moves down a bit instead. When I click it again, it moves down again.
So, I must be doing something wrong here...Maybe it's the whole vector thing? The vector points into a direction, but it is not a certain point itself???
Any help appreciated!
Thanks
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
08-30-2007 13:32
It'll be much easier to help you if you post your script.
Also, llSetPos can only move an object by (I think) 10m. So maybe your X,Y,Z position is a long distance below your object's current position. Thus, llSetPos is trying to move there, but since it's not allowed to more more than 10m, it ends up moving only 10m in the direction of your final destination? And so it looks like the vector specifies a direction, when really it does specify a destination point (like you said), but the destination is too far away.
|