If I am standing on a prim that is at any random angle, how do I plot a point 10m out from the front face of the prim? 12m? etc...
Can anyone help me with this? Code would be wonderful if you got it.

Thanks in advance!
These forums are CLOSED. Please visit the new forums HERE
Plotting a point on a sphere in LSL |
|
Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
|
09-23-2009 13:50
hey guys
If I am standing on a prim that is at any random angle, how do I plot a point 10m out from the front face of the prim? 12m? etc... Can anyone help me with this? Code would be wonderful if you got it. ![]() Thanks in advance! |
EF Klaar
Registered User
![]() Join date: 11 Jun 2007
Posts: 330
|
09-23-2009 14:14
This post: /54/d4/334507/1.html#post2525897 has the answer.
|
Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
|
09-23-2009 14:26
This post: /54/d4/334507/1.html#post2525897/54/d4/334507/1.html#post2525897 has the answer. Perfect Thank you! |
Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
|
09-23-2009 16:46
This is just a bit over my head now and I'm trying to get a grasp but I can't find a good example in the wiki. Could I impose on you to show me an example how this is used as a function to return a vector at a Xm distance for example? I've never used functions and this is a difficult one to start with probably. Going on six years in SL and I'm finally giving scripting a try but it is a frustrating language to learn so far
![]() Thank you |
EF Klaar
Registered User
![]() Join date: 11 Jun 2007
Posts: 330
|
09-23-2009 19:17
This example shows how you can use the function Hewee gave me, and also how to unravel it to use it inline. llRot2Up has relatives for left and forwards too. The LSL wiki page for this is http://wiki.secondlife.com/wiki/LlRot2Up.
CODE
|