vendredi 30 octobre 2020

Unity C# Random Position Around A Point You Clicked

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. enter image description here The objects spawn with an offset and I don't know why.Also objects spawn inside other objects.




Aucun commentaire:

Enregistrer un commentaire