using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
item_rotator := class(creative_device):
@editable var mySpinnyThing : creative_prop = creative_prop{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
loop:
SmoothRotate(mySpinnyThing)
SmoothRotate<private>(myProp : creative_prop)<suspends> : void=
Sleep(0.0)
myTransform := myProp.GetTransform()
myPosition := myTransform.Translation
myRotation := myTransform.Rotation
NewRotation := myRotation.ApplyYaw(3.14159)
MoveResult := myProp.MoveTo(myPosition, NewRotation, 3.0)
If i walk towards the prop it pushes back against me
If i stand motionless then it passes straight through me
I would like the prop to push the player at all times, is this possible?
Thanks