Summary
.GetOrigin just fails everytime even when the entity it’s being called on has a transform component
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
- Create an entity with a transform component and place it in the world
- Create, compile and add the component below to the entity
- Read the print log
origin_tester_component
origin_tester_component<public> := class<final_super>(component):
OnSimulate<override>()<suspends>:void=
Entity.SetGlobalTransform(transform{}) # Will add a transform component if one doesn't exist
if(Entity.GetOrigin[]) then Print("Got Entity's origin") else Print("Entity has no transform_component")
Expected Result
The printed statement should say “Got Entity’s origin”
Observed Result
But it’ll say “Entity has no transform_component” despite one existing
Platform(s)
PC