withCoordinates

Creates a new position with the given x, y, and z coordinates and the rotation of this position.

Return

the new position

Parameters

x

the new X coordinate

y

the new Y coordinate

z

the new Z coordinate