0

In Amazon Sumerian, ctx.entity.transformComponent.position gives position of the entity in local space of parent.

How can you get the world position of an entity?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Gkills
  • 587
  • 1
  • 6
  • 28

1 Answers1

0

You can get the world position of an entity using the following call:

ctx.entity.transformComponent.getWorldTranslation()

Additional Info:

  1. I did not find any way to directly set the world position of an entity.
  2. To set the position use setTranslation().
John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Gkills
  • 587
  • 1
  • 6
  • 28