Minimal { x, y, z } shape that 3D math methods accept
{ x, y, z }
Any plain object with these three numbers can be passed in place of a Vector3.
const spawnPoint: PointData3D = { x: 0, y: 1, z: -5 };enemy.position.copyFrom(spawnPoint); Copy
const spawnPoint: PointData3D = { x: 0, y: 1, z: -5 };enemy.position.copyFrom(spawnPoint);
Position on the z axis
waypoints.sort((a: PointData3D, b: PointData3D) => a.z - b.z); Copy
waypoints.sort((a: PointData3D, b: PointData3D) => a.z - b.z);
Minimal
{ x, y, z }shape that 3D math methods acceptAny plain object with these three numbers can be passed in place of a Vector3.
Example