02-06-2006 01:04
From: lex Goff
Could some post some sample code tha illustrates rotation around an abritrary point for a single prim?


If you want to rotate it x, y, and z degrees around the point center:

CODE

rotation rot = llEuler2Rot( <x*DEG_TO_RAD, y*DEG_TO_RAD, z*DEG_TO_RAD>);
llSetPos(center + (llGetPos()-center)*rot);


I'm new to scripting and I haven't tested this out, but it seems like it should work.