Build Your Own Metaverse with Unity by David Cantón Nadales

Build Your Own Metaverse with Unity by David Cantón Nadales

Author:David Cantón Nadales
Language: eng
Format: epub
Publisher: Packt
Published: 2023-11-15T00:00:00+00:00


It’s important to know that the size of the Cube doesn’t have to be exactly the same as I’ve used here. You can use whatever you want; it won’t affect the performance we’re looking for in this chapter.

Figure 7.18 – Box Collider component added to the Cube

Finally, an important setting that we should always apply when we want to use a Collider as a tip-off and not as a physical barrier that prevents the player from crossing it is to activate the Is Trigger checkbox in the Collider component. This will completely change the behavior of the Collider and allow it to trigger events when an object enters or exits it.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.