Summary
With Experimental Physics enabled in project settings, fort_chararter.GetViewRotation()
always returns a constant value.
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Character
Steps to Reproduce
- Make a new
creative_device
that gets player’s view rotation throughfort_chararter.GetViewRotation()
- Print player’s view rotation
Expected Result
Player’s view rotation should get player’s camera rotation
Observed Result
Player’s rotation is always at constant:
Axis: {x=0.000000,y=0.000000,z=1.000000} Angle: 70.001099
or
Yaw: 70.001099, Pitch: 0.000000, Roll: 0.000000
after converting the rotation through .GetYawPitchRollDegrees()
Platform(s)
Tested on PC
Upload an image
Additional Notes
Code used:
using. /Fortnite.com/Characters
using. /Fortnite.com/Devices
using. /UnrealEngine.com/Temporary/Diagnostics
using. /UnrealEngine.com/Temporary/SpatialMath
using. /Verse.org/Simulation
view_rotation_bug := class(creative_device):
OnBegin<override>()<suspends>:void=
if (FC := GetPlayspace().GetPlayers()[0].GetFortCharacter[]):
loop:
FCRot :=FC.GetViewRotation()
if:
Yaw := FCRot.GetYawPitchRollDegrees()[0],
Pitch := FCRot.GetYawPitchRollDegrees()[1],
Roll := FCRot.GetYawPitchRollDegrees()[2]
then:
Print("Looking at Yaw: {Yaw}, Pitch: {Pitch}, Roll: {Roll}")
Print("Looking at Rotation: {FCRot}")
Sleep(0.1)