Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How do I create a Camera relative to my AV's heading?

Sofia Weir
Registered User
Join date: 5 Feb 2007
Posts: 26
06-23-2008 10:44
Hello all

I have created a script that creates a camera which looks at myAV from the front, back, sides etc...
The only problem is I want the camera to be relative to my AV's heading not the region's north.

I mean when i use the "Front" camera I want to be looking my AV from the front no matter where i am currently heading..

I am sure this sould be easy but I suck at geometry :-(

I merelly ask for the formula for the CAMERA_POSITION parameter.
Thanx!
Pruoki Snook
Registered User
Join date: 29 May 2008
Posts: 3
06-23-2008 11:42
How about,

vector camPos*llGetRot();



That should make the camera relative to the avatar it's attached to.