Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Offset Relative to Object, not World

Vilkacis Mason
Registered User
Join date: 30 Aug 2005
Posts: 49
04-04-2006 05:38
So basically, I have llSetPOS(llGetCameraPOS() + offset), with offset being lets say <1,0,0>. What this does is essencially make the object constantly stay WEST of the camera's position, relative to the world. What I WANT is to have it LEFT of the camera, relative to the camera's position. Make sense?

Can I do this somehow? Set an offset, through some scripting, that will be based on the camera's position and not the world?
Kairen Overdrive
Registered User
Join date: 12 Jul 2005
Posts: 38
04-04-2006 09:16
I think multiplying it with the camera rot should work.
CODE
vector offset = <0,1,0>;  // its either 1 or -1, cant remember, just try.

llSetPos(llGetCameraPos() + offset * llGetCameraRot() );
Vilkacis Mason
Registered User
Join date: 30 Aug 2005
Posts: 49
04-04-2006 10:16
From: Kairen Overdrive
I think multiplying it with the camera rot should work.
CODE
vector offset = <0,1,0>;  // its either 1 or -1, cant remember, just try.

llSetPos(llGetCameraPos() + (offset * llGetCameraRot()) );



Not working. I get Syntax errors, type mismatch.