Jump to content
You are about to reply to a thread that has been inactive for 1594 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

So I'm having a slight issue with how to create a camera that can follow directly behind a plane.

My issue is that llSetCameraParams doesn't seem to follow the rotation of a vehicle. What I need is a camera that is able to pitch with the plane as it goes up or down.

Help would be greatly appreciated as after trying a few things myself I haven't been able to come up with something. My guess is that I will need the camera to update so that it could rotate according to the vehicle's rotation.

Posted (edited)

Have a look at llSetCameraEyeOffset and llSetCameraAtOffset. These set a camera view for a sitting avatar that locked to the object's rotation. But that's about all they do. (Like Wulfie says.)

If you do need to use llSetCameraParams, try it with the lag and threshold, and behindness angle, parameters set to zero. This is from my boat script, and seems to work ok for me (though you'll probably want to change the distance and pitch values):

    llSetCameraParams 
    ([
        CAMERA_ACTIVE, TRUE, 
        CAMERA_FOCUS_LOCKED, FALSE,
        CAMERA_POSITION_LOCKED, FALSE, 
        CAMERA_DISTANCE, 3.0, 
        CAMERA_PITCH, 8.5, 
        CAMERA_FOCUS_LAG, 0.0, 
        CAMERA_FOCUS_THRESHOLD, 0.0, 
        CAMERA_POSITION_LAG, 0.0, 
        CAMERA_POSITION_THRESHOLD, 0.0, 
        CAMERA_BEHINDNESS_ANGLE, 0.0
    ]);


 

 

Edited by KT Kingsley
You are about to reply to a thread that has been inactive for 1594 days.

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
×
×
  • Create New...