Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How do I stop the player placing an object outside the level?

$
0
0
So I have some functionality which allows the player to click on an object to pick it up, and place it down somewhere else in the scene. When it's being held, a green/red "placement object" version of the object's model appears at the mouse cursor (Figure 2), showing the player if the current placement is valid/invalid.

My problem is that I don't know how to check if the placement object is outside of the bound of the level. I don't want the player to be able to place the object on the...

How do I stop the player placing an object outside the level?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles