Cinder Darkheart Posted October 7, 2019 Share Posted October 7, 2019 What would be the best way to handle setting a prim to face north? Not looking to make a compass just need to force the prim to face north on rez on calls of an update. Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted October 7, 2019 Share Posted October 7, 2019 (edited) Determine and define which direction is the object's "front." You can, for example, use a vector like <1, 0, 0> (meaning positive X is forward) and account for the object's current rotation.http://wiki.secondlife.com/wiki/Rotationhttp://wiki.secondlife.com/wiki/LlGetRot Get the rotational difference between the object's front and "north." (Positive Y, probaby.)http://wiki.secondlife.com/wiki/Coordinatehttp://wiki.secondlife.com/wiki/LlRotBetween Rotate by that amount.http://wiki.secondlife.com/wiki/LlSetRot Edited October 7, 2019 by Wulfie Reanimator 3 Link to comment Share on other sites More sharing options...
Xiija Posted October 8, 2019 Share Posted October 8, 2019 llSetRot( llEuler2Rot( (<0,0,90>*DEG_TO_RAD) )); Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now