My problem is that the Unity Random.onUnitCircle
doesn't work as supposed. The target is to choose a random positions in a circle around a point where the player has clicked. Also the points should not overlap and have some space between them.This is the code that runs in Update. The objects spawn with an offset and I don't know why.Also objects spawn inside other objects.
Aucun commentaire:
Enregistrer un commentaire