Collisions

How to add collision to complex model like stairs
if i added box or any other type of collision it dont work
plz tell how to add custom collision

Pick one:

  • use a ramp as the collision shape, players move smoothly on ramps - easy and efficient
  • if the stars do not need to move, use complex collision - it’s generally fine for stairs but can mess with navigation and is not as performant (borderline irrelevant unless your levels are made purely of high poly staircases)
  • use Convex Decomposition in the mesh asset panel - can work OK at times
  • carve collision shape using brushes, convert, use as collider - a.k.a. poor man’s UCX
  • manually & laboriously craft collision out of some boxes - meh
  • use UCX - best option, imho
  • use the dropdown in the asset to add primate collision shape or DOP volume
  • something else? - someone please do tell!

how to add ramp like collision

I added a box collision and rotated it so it was sloping with the stairs, not sure if that helps you :slight_smile:

1 Like

NOT WORKING

No need to shout. You probably did not set the collision to block…

1 Like

it is enable but the player is not able to walk up on stairs

Show us the collision settings of the blocking volume.

No, the settings of the ramp - the rotated box @JodieKitten suggested you use - inside the actor. It’s literally just this:


You can also do it in the asset editor instead; this way the collision is already associated with the asset:

Or use complex collision:

Or use decomposition if you feel lazy today:

There’s too many ways to do this.

i should enable only pawn

How would I know - who would you like to collide with the stairs? You can create many objects types and channels.

i imported the stairs so i can not enable pawn setting

How does it matter? You’re not changing the collision of the stairs but that of the box volume you added. If you do not want to use actors, add collision to the asset as above.

i should add box ones collision

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.