|
Nero Draper
Registered User
Join date: 15 Nov 2005
Posts: 5
|
05-31-2006 20:53
Does anyonre happen to have a script that will make a object always point north?
|
|
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
|
06-01-2006 06:20
Errr it's not like real life... there is no 'point'. I forget what the north axis is though... x or y... Anyways, say the north south of a sim is the x axis. and north is 0 and south is 255. Just get whatever position you are on and set the y axis to be the same.
Ex: vector lCurrentPos = llGetPos(); llLookAt(<0.0,lCurrentPos.y,lCurrentPos.z>,1.0);
That should work.
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
06-01-2006 10:39
Or do something like llSetStatus(STATUS_ROTATE_X|STATUS_ROTATE_Y|STATUS_ROTATE_Z,FALSE); And set the rotation correctly. Then, assuming the object is physical, it won't change rotation.
|