I want to move my character one unit backwards.
I try to use this:
this.entity.setPosition(new pc.Vec3(this.entity.getPosition().x, this.groundPoint.y, this.entity.getPosition().z + 1));
But this works only when the rotation of my character is (0,0,0).
If the rotation of my character for example is (0,90,0) my character is going one unit to the left…