User Tools

Site Tools


4rpl:commands:setrplcamposition

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setrplcamposition [2025/02/14 14:57] – created - external edit 127.0.0.14rpl:commands:setrplcamposition [2025/09/13 14:31] (current) – [Bug] kalli
Line 11: Line 11:
 <code 4rpl> <code 4rpl>
 SetRPLCamPosition(V3(100 50 100)) SetRPLCamPosition(V3(100 50 100))
 +</code>
 +
 +===== Bug =====
 +When the mouse cursor is active (clicking) outside the game window, then SetRplCamPosition is not visually applied. However, SetCameraPosition is being applied in that situation, even though SetRplCam is true. See below code that was used for bug testing.
 +<code 4rpl>
 +once 
 +RPLCamCopyPosAndRot
 +1 SetRplCam
 +GetRplCamPosition ->camPos 
 +GetMapSize 0 swap v3 2.0 div ->cameraViewPos
 +endonce
 +
 +# <-camPos <-move add SetRplCamPosition # BUGGED.
 +<-camPos <-move add dup SetRplCamPosition SetCameraPosition # FIXED.
 +
 +<-step 1.0 add ->step
 +0 0 <-step v3 ->move 
 +
 +<-cameraViewPos <-camPos <-move add sub SetRplCamForward
 </code> </code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/setrplcamposition.1739545024.txt.gz · Last modified: 2025/02/14 14:57 by 127.0.0.1