I wish to make an ability that allows a player to draw on only one wall, like in the game “Spray Paint!” but only on one wall.
you could use a Raycast. It will return the instance that the ray hit and you can check if that instance is your special wall. Raycast also returns the position of the ray hit so you can use that to code where to put the paint
1 Like