User Tools

Site Tools


4rpl:commands:rplcamtween

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:rplcamtween [2021/01/08 11:01] – created - external edit 127.0.0.14rpl:commands:rplcamtween [2024/07/04 02:01] (current) – [Examples] Improved advanced example Vertu
Line 7: Line 7:
 ===== Description ===== ===== Description =====
 Causes the camera, in rpl mode, to move to pos and rotate to rot (both vector3s) over the specified time in seconds. 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 use this again while it's still active, it keeps track of any movements that are still running, so if you start a long movement and then do a short movement, after the short movement finishes it will return to the long movement if that still had time remaining and hadn't yet reached its destination. (I.e. if you start a eight second movement, and then start a two second movement two seconds in, at the four second mark it will return to where it would have been four seconds into the eight second movement.)
 +
 +One way to avoid this issue is to avoid overlap by calling interruptions too early and only interrupt things at the end of the movement, or at least close enough the duration doesn't last beyond the new movement.  
  
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
 RPLCamTween(V3(40 20 30) V3(40 0 0) 0.6) RPLCamTween(V3(40 20 30) V3(40 0 0) 0.6)
 +</code>
 +<code 4rpl>
 +RPLCamCopyPosAndRot #So when RPLCam is activated, we say the current camera is how the RPL cam should start as.
 +SetRPLCam(true)
 +RPLCamTween(V3(40 20 30) V3(40 0 0) 1.5) #Have the RPLCam move to this position and rotate to this rotation.
 </code> </code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/rplcamtween.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1