<div>Thanks Justin, I think I have more than enough to get the answer, lol....</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Nov 17, 2010 at 5:28 PM, Justin Clark-Casey <span dir="ltr"><<a href="mailto:jjustincc@googlemail.com">jjustincc@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">On 17/11/10 23:11, bodzette Coignet wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">So here's a question:<br>If I want to make an NPC move I need to know which orientation an NPC has and what way I want it to go.<br>
So I can pretty much understand a Vector 3 which would be move in the direction of +/- for x,y,z where x is left-right?,<br>y is back-forward? and z is up-down?<br>But quaternions I'm having a hard time getting my head around and I have a hard time coding something when I don't<br>
understand what it is.<br>Is it some representation of rotation in 3D similar to the vector but for rotation instead?<br>Is it measured in the naively intuitive +/- 0-360 degrees for each of x,y, z or is it measured in something more<br>
esoteric like radians or something else entirely?<br>Anyone give me a quaternions-for-dummies elevator speech run-down so I know what I'm working with?<br></blockquote><br></div></div>Unfortunately I can't do that but I do suggest taking a look at the LSL quaternion/rotation conversion functions, such as<br>
<br><a href="http://lslwiki.net/lslwiki/wakka.php?wakka=rotation" target="_blank">http://lslwiki.net/lslwiki/wakka.php?wakka=rotation</a><br><br>I'm finding that<br><br><a href="http://www.amazon.co.uk/Quaternions-Rotation-Sequences-Applications-Aerospace/dp/0691102988/ref=sr_1_1?ie=UTF8&qid=1290040061&sr=8-1" target="_blank">http://www.amazon.co.uk/Quaternions-Rotation-Sequences-Applications-Aerospace/dp/0691102988/ref=sr_1_1?ie=UTF8&qid=1290040061&sr=8-1</a><br>
<br>is a good book for understanding these issues, if a little pricey (don't ask me any questions, I haven't got to the good bits yet!)<br><font color="#888888"><br>-- <br>Justin Clark-Casey (justincc)<br><a href="http://justincc.org/" target="_blank">http://justincc.org</a><br>
<a href="http://twitter.com/justincc" target="_blank">http://twitter.com/justincc</a><br>_______________________________________________<br>Opensim-users mailing list<br><a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br></font></blockquote></div><br>