Transform translate


#1

Hi everyone,
i don’t know how to translate an object like in unity using Transform.Translate.
In Xenko i see only transform.position and i don’t know how to move the Entity following the direction of the axis updated by rotations.
Thanks in advance!


#2

I think all you would have to do is rotate the translation vector before adding it, i.e.

Entity.Transform.Position += Vector3.Transform(translation, Entity.Transform.Rotation);

#3

I didn’t knew Vector3 methods…
It worked for me, thank you!