W
W
wf_egor2020-09-30 21:02:50
Unity
wf_egor, 2020-09-30 21:02:50

How to make a ban on going beyond the screen borders?

There is a character. It must not go beyond the screen. (It's just that the box cillder is not robbed at the edges, because the character has a trigger on colliders) You can implement a teleport to the edge coordinates when exiting. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WasTabon, 2020-09-30
@WasTabon

Tags, just add some kind of tag to these GameObjects and check, like, if there is a collision with this tag, then tp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question