Christopher Organiser Posted December 20, 2011 Share Posted December 20, 2011 Is there a way to script an object to rez facing the avatar that rezzed it? I do not like to have to rez an object then rotate it. Thank you in advance! :) Link to comment Share on other sites More sharing options...
Rolig Loon Posted December 20, 2011 Share Posted December 20, 2011 You'd have to know which direction your av is facing first. One way to do that is to ask rotation AvFacing = (rotation) llList2String(llGetObjectDetails(llGetOwner(),[OBJECT_ROT]),0); Once you have that, then the rotation for your rezzed object should be llEuler2Rot(<0.0,0.0,PI>)*AvFacing That is, your own rotation times a 180 degree turn around the Z axis. I assume that you mean to have the object rez in front of you, so you'd want the position vector to be your own position plus, say, <2.0,0.0,0.0>*AvFacing . 1 Link to comment Share on other sites More sharing options...
Christopher Organiser Posted December 20, 2011 Author Share Posted December 20, 2011 Awesome! Thank you so much for your assistance! 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