Financial Rizzler Posted August 3, 2020 Posted August 3, 2020 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.
Wulfie Reanimator Posted August 3, 2020 Posted August 3, 2020 Try these instead: http://wiki.secondlife.com/wiki/LlSetCameraAtOffset http://wiki.secondlife.com/wiki/LlSetCameraEyeOffset 1
KT Kingsley Posted August 3, 2020 Posted August 3, 2020 (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 August 3, 2020 by KT Kingsley
Financial Rizzler Posted August 3, 2020 Author Posted August 3, 2020 18 minutes ago, Wulfie Reanimator said: Try these instead: http://wiki.secondlife.com/wiki/LlSetCameraAtOffset http://wiki.secondlife.com/wiki/LlSetCameraEyeOffset Well that was easy, thank you so much you saved me a lot of headache. Surprised I didn't know these functions existed. Once again thank you!
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