Join Sue Blackman for an in-depth discussion in this video Using colliders for triggers, part of Unity 3D: 3.5 Essential Training.
The next bit of collider goodness we'll look into is the Is Trigger parameter.…It turns out you need a collider to be able to detect a collision of any kind,…and that includes ray casting, by the way. Plus, one of the colliding objects…must have a rigid body.…Character controllers have a special kind of rigid body, so we are good to go.…So how do you allow the player to go through something while still triggering an intersection?…The answer is the Is Trigger parameter.…When checked, it allows objects to go through it, but it can still be detected.…
To see how this works, let's select the Barricade Mid. In the Structures for…Scenes > Barrier 2, we'll select the Barricade Mid.…In the Inspector, in the Mesh Collider, we are going to check Is Trigger.…Now we can click play and see about driving through the barricade.…With my W key, I head over and sure enough, I can get through it.…I'm going to hit my Escape key to disable navigation, so I can get out of Play mode.…
Now we'll need to create a new script to trigger something.…
- Understanding game and level design theory
- Organizing your project in Unity
- Creating and transforming objects
- Setting up the geometry
- Painting in terrain, textures, and trees
- Adjusting the render settings
- Importing terrains
- Creating a first-person controller
- Creating materials and shaders
- Lighting the game
- Working with cameras and multiple views
- Animating characters and assets
- Creating fire with particle systems
- Managing the GUI (graphical user interface)
Skill Level Beginner
1. Exploring Unity 3D
2. Exploring the Terrain Editor
3. Creating the Environment
Publishing project settings3m 37s
4. Introducing Unity Scripting
5. In-Game Scripting
6. Working with GameObjects and Components
7. Exploring Prefabs
8. Using Imported Assets
9. Understanding Lighting
10. Keyframing Animation
11. Animating Skinned Meshes and Controlling Characters
12. Working with Cameras and Layers
13. Creating Game GUIs
14. Extra Techniques and Features
What's next1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.