For my runner game that I am making I out in cubes that you have to dodge but I noticed that they have no collision. When I hit them I pass right through. I have tried a few things but they did not work. How would I give those boxes collision. Also They seem to have collision if I jump ontop of them but not if I hit them directly.
- Are you using Character Controllers, or something custom/manual?
- How are you determining collisions and the results (raycast, linecast, boxcast, automatic, etc.)?
- What event triggers do you have set up to take care of this? (OnTriggerEnter, etc.)
Place the cubes then select a cube and attach a collider to it click Component > Physics > Mesh collider, do this for each cube.
I’m guessing the cubes aren’t moving?