- 0
Circling Camera - vectors don't add up
You are about to reply to a thread that has been inactive for 4348 days.
Please take a moment to consider if this thread is worth bumping.
Please take a moment to consider if this thread is worth bumping.
Question
kari1sl
I'm trying to get the camera to circle my avatar but, clearly I've got vector trouble.
I've tried
float x = llCos(radians); float y = llSin(radians); vector here = llGetPos();
vector xyz = here + <x, y, 0>;
which I now think is wrong after reading
http://lslwiki.net/lslwiki/wakka.php?wakka=vector
but
vector there = llGetPos(); there.x += llCos(i); there.y += llSin(i);
doesn't work either.
Please, how do I get these coordinates to add up?!
Thanks,
_______FOLLOW UP _________15Jan_____________
Thanks MartinRJ,
(Rolig - I'll post in LSL Scripting forum next time. Just thought I'd continue the thread here.)
Your I picked apart your example and got mine working - thanks to your posting.
But, as you see, I'm keen on sin and cos, so I hope you aren't offended. :-)
But now I'm stuck. I'd like to circle at face level but my code - FaceCircle() -
makes the cameraa follow a tilted orbit - as if the center isn't centred.
Any suggestion why it doesn't work up the z-axis? Or how to fix it?
Thanks
2 answers to this question
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