Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Stability
Summary
Entity with a custom transform rotation component crashes when the Fall Guys character gets close enough to collide with it
Steps to Reproduce
Create a Fall Guys island
Enable Scene Graph
Create an entity
Add mesh component with default cube
Add collision component
Add the following custom component:
using { /Verse.org }
using { /Verse.org/Native }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /UnrealEngine.com/Temporary/SceneGraph }
rotator_component<public> := class(component):
@editable
var RotationDegrees<public>:float = 10.0
var TransformComp : ?transform_component = false
var PrePhysicsCancelable : ?cancelable = false
OnBeginSimulation<override>():void =
(super:)OnBeginSimulation()
if:
Transform := Entity.GetComponent[transform_component]
then:
set TransformComp = option{Transform}
set PrePhysicsCancelable = option{ TickEvents.PrePhysics.Subscribe(OnPrePhysics) }
OnEndSimulation<override>():void=
(super:)OnEndSimulation()
option {PrePhysicsCancelable?.Cancel()}
set PrePhysicsCancelable = false
OnPrePhysics(DeltaTime:float):void=
if:
Transform := TransformComp?
then:
OriginalTransform := Transform.GetTransform()
UpdatedRotation := OriginalTransform.Rotation.ApplyRoll(DegreesToRadians(RotationDegrees*DeltaTime))
NewTransform := transform{Translation:=OriginalTransform.Translation, Rotation :=UpdatedRotation, Scale:=OriginalTransform.Scale}
Transform.SetTransform(NewTransform)
OnSimulate<override>()<suspends>:void={}
(Entity:entity).GetComponent<public>(component_type:subtype(component))<decides><transacts>:component_type=
Entity.GetComponents(component_type)[0]
Place entity in the scene
Run Session
Start Game
Move character to where the component would collide with the character
Expected Result
The player should be able to stand in the rotating cube and collide normally, this issue is not present in regular fortnite islands this is the expected behavior
Observed Result
Fortnite crashes as soon as it is in collision range of the cube
Platform(s)
All
Additional Notes
crash log