Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
spawn() {
this.position = new Vector3(
Math.floor(Math.random() * 41) - 20,
Math.floor(Math.random() * 41) - 20,
Math.floor(Math.random() * 41) - 20
);
this.rotation = new Quaternion.fromEuler(
Math.random() * 361 * Math.PI / 180,
Math.random() * 361 * Math.PI / 180,
Math.random() * 361 * Math.PI / 180
);
}