User Tools

Site Tools


4rpl:commands:rplcamtween

This is an old revision of the document!


Index

RPLCamTween

RPLCamTween(<-pos <-rot <-time)

Description

Causes the camera, in rpl mode, to move to pos and rotate to rot (both vector3s) over the specified time in seconds.

:WARNING: If you are using multiple instances of this API in succession, be aware that when the elapsed time completes for any use of this API, the camera will switch to it. In other words, if you run this API for one case that takes 6 seconds, and then run another that takes 4 seconds less than 2 seconds after the first use, the camera will transition to the second use of the API. However, once the time has expired for the first use, the camera will switch back to the first instance of the API.

One way to avoid this issue is to ensure that each call to this API takes at least as long as the previous call.

Examples

RPLCamTween(V3(40 20 30) V3(40 0 0) 0.6)
GetCameraPosition ->cameraPos
GetCameraRotation ->cameraRot
 
SetRPLCam(true)
SetRPLCamPosition(<-cameraPos) #So the camera isn't sitting at 0,0,0.
SetRPLCamRotation(<-cameraRot) #So the camera isn't oriented as 0,0,0.
 
RPLCamTween(V3(40 20 30) V3(40 0 0) 1.5)

Index

4rpl/commands/rplcamtween.1719868124.txt.gz · Last modified: 2024/07/01 17:08 by Karsten75