Create colliders for a ramp

Hello,

I’m creating a ramp to go over a bridge, and I wanted to use primitive colliders to “wrap” the ramp (and avoid using “mesh colliders”). The problem is “box collider” can be moved and resized, but not rotated, so I cannot rotate it for the ramp (a piece of street that raise up to the bridge)!

      _________
     /
    /  <-- RAMP
___/

Please can you tell me how I can proceed to make colliders for the ramp?

Thank you!

A box collider can’t be rotated in relation to the game object to which it is attached, but the game object itself can be rotated. Just make the game object that has the box collider attached, a child of the game object that displays the mesh.

1 Like

I understood! Thank you!

I know its too late to answer this but you can also use polygon collider 2d