Unity Learn home
View Tutorial Content

World Interactions - Damage Zones and Enemies

Tutorial
Beginner
+10 XP
1 Hour
(3020)
Overview
Groups
Summary
In the previous tutorial, you used a Trigger to detect when Ruby touches a health collectible. In this tutorial, you will use the same knowledge to damage the character when they’re in a certain zone.
You will also extend that to enemies that will move back and forth, thanks to what you learned about Rigidbody components, using Colliders and not Triggers.
Materials
Select your Unity version
Last updated: May 18, 2022
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
Language
English
Also included in
World Interactions - Damage Zones and Enemies