How can i recreate the RMB freelook camera control in BP?
Nevermind, I figured it out myself. Wow, Math Expressions in 4.2 are nice. This may not be the best way, but it works well enough. The freelook moves faster as the mouse gets closer to the edge of the screen. The math assumes that the HUD is 1280x720. Alternatively, a HUDX and HUDY value could be obtained from the Event Receive Draw in a HUD blueprint and passed in as inputs to the math expressions
In the image:
1 "FreeLook" event called by Tick in Pawn Blueprint. RightMouseButton controls the gate.
2 "FlyingPlayerController" is established by a cast on BeginPlay in Pawn Blueprint (see casting/blueprint communication)
3 The default value for "CameraYawRate", and "CameraPitchRate" is 750.0, but it could be any value you like.
4 The default value for "FreeLookSpeed" is 1.0 and would be used just as a multiplier on top of the Rate values.
Follow this question
Once you sign in you will be able to subscribe for any updates here