This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:rplcamcopyposandrot [2021/01/08 16:01] – created - external edit 127.0.0.1 | 4rpl:commands:rplcamcopyposandrot [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Description ===== | ===== Description ===== | ||
Causes the internal values of rplcam position and rotation to copy the current values of the camera' | Causes the internal values of rplcam position and rotation to copy the current values of the camera' | ||
+ | |||
+ | 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: | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> | ||
RPLCamCopyPosAndRot | RPLCamCopyPosAndRot | ||
+ | </ | ||
+ | <code 4rpl> | ||
+ | RPLCamCopyPosAndRot | ||
+ | SetRPLCam(true) | ||
+ | RPLCamTweenLookAt(GetRPLCamPosition V3(40 0 60) 0.6) | ||
</ | </ | ||
< | < | ||