Basically how it works is:-
The avatar wears tha camera, and walks around, as the avatar is walking/flying, its various positions (camera's waypoints) are placed into a list as vectors.
Later on, it is in "state moving", where the idea is that the camera object will recall the positions from the list and move to them one by one, thereby achieving a tracking motion.
The problem is, I need the camera/avatar to point/look at a target while it is tracking around the waypoints.
I have tried assigning the "Target" as a Vector and as a Rotation, then using llRotLookAt, llSetRot, llPointAt.
Below is the bit of my code which tracks around the waypoints (Positions). They are in a FOR loop, which iterates through the list of the positions. While iterating through the FOR loop, I want the object /avatar to point at "Target".
Is the fact that the camera is a scripted object the problem as to why it cant point the avatar towards "Target"?
Worth noting is, the avatar has to be manually forced into mouse look to get a shot you could use from the camera...is this a problem?
Here is the FOR loop anyway...
GO TO is the variabler name for the latest "Position" at index i
for(i=1; i<length_Positions; i++)
{
llWhisper(0, "GOTo is..."
;llWhisper(0, (string) GoTo );
llSleep(2);
//llSetRot(Target_R);
llRotLookAt(Target_R, Strength, Damping);
llSay(0, "Target_R is..."
;llSay(0, (string) Target_R );
//llLookAt(Target, Strength, Damping);//
//ABOVE IS THE CODE THAT IS SUPPOSED TO POINT THE
//AVATAR TOWARDS TARGET
llWhisper(0, "TARGET is.."
;llWhisper(0, (string) Target);
GoTo =llList2Vector(Positions, i);
llMoveToTarget(GoTo, 3);
}
Any help will be very gratefully received!
Thanks,
Eleri