Hello, i am making a game and i use Random.onUnitSphere to spawn metreots at random postions.
but theproblem is when i run my game the metreots spawns at one locaction.
Can somebody help me with this promblem?
Here is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
Also, please use code tags OP to make things easier in the future, alternatively if you want gameobjects to be placed directly on the surface of the sphere you’ll probably want some rotational code as well but I’ve forgotten how to do that.
I remember it having something to do with normalize or normals though?