User Tools

Site Tools


4rpl:commands:rplcamcopyposandrot

Differences

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

Link to this comparison view

4rpl:commands:rplcamcopyposandrot [2021/01/08 11:01] – created - external edit 127.0.0.14rpl:commands:rplcamcopyposandrot [2024/07/04 01:58] (current) – Elaborated and advanced example provided Vertu
Line 7: Line 7:
 ===== Description ===== ===== Description =====
 Causes the internal values of rplcam position and rotation to copy the current values of the camera's position and rotation. Causes the internal values of rplcam position and rotation to copy the current values of the camera's position and rotation.
 +
 +In other words: when the camera is set to RPL mode, it will inherit the current rotation and position of the camera at the time this API was called. If this is not done or addressed with [[4rpl:commands:setrplcamposition|SetRPLCamPosition]] / [[4rpl:commands:setrplcamrotation|SetRPLCamRotation]], then the camera will be located at (0,0,0) facing North once RPL Cam is activated.
  
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
 RPLCamCopyPosAndRot RPLCamCopyPosAndRot
 +</code>
 +<code 4rpl>
 +RPLCamCopyPosAndRot
 +SetRPLCam(true)
 +RPLCamTweenLookAt(GetRPLCamPosition V3(40 0 60) 0.6)
 </code> </code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/rplcamcopyposandrot.txt · Last modified: 2024/07/04 01:58 by Vertu