- Home /
player is submerged in a prefab
I am making a runner game in unity3D, there is a road prefab I have taken from the asset store. The player is submerged in the road when I run the game.. pls can anyone help me.
Answer by connorwforman · Sep 06, 2017 at 11:27 AM
Add a collider to the prefab; whenever you import and object, it only shows the model, but there is no collider. So, if you add a collider to the road and edit it that should help.
To add the collider, click on the road object in the hierarchy, and then in the inspector, click on Add Component, then search for a Box Collider, and add that. You may need to edit the collider. To do this, you will have to click on the road object with the collider, then click "edit collider" you can either drag the drag points to make it bigger or smaller, or you can use the number input boxes. Hope this helps. Good luck coding.
Your answer
Follow this Question
Related Questions
My Camera Violently Rotates Around My Character With The Slightest Movement of the Mouse 0 Answers
Assets Blinking on Game Play 0 Answers
Animatior Glitch when interrupted 0 Answers
glitching player 0 Answers
If statement bug? (Glitch) 1 Answer