Importing the RampColliders
If you have ever worked with Unity in a team setting, especially in a source control environment such as GitHub or BitBucket, you may have run into issues like overwriting each other's work. It can be hard to avoid this situation at times. Prefabs are one of the safeguards against killing each other's work.
In this section, we will import a Prefab and put it inside our main Prefab. This allows us to update part of a Prefab with little hassle. Once it's in, it should align perfectly and be ready to go.
The RampColliders object was made as a result of a physics error that was happening with the project. In response to the error, I turned off the mesh collider on the ramp object and created five objects layered in a way that attempts to mimic the curve of the ramp, as pictured earlier in this chapter.
If you have all the associated project files downloaded, locate them. If not, you should download them now and have them ready. Follow the given steps:
- Click on the
Assets...