Change player collision from capsule to a cube [UE5]

Is there a way to remove the capsule player collision which comes as default and replace it with a box collision because I really dont want the rounded bottom. If its not too much the ask if someone do knows how to do is if you could guide me trough with detail because Im really fresh at this and dont have much experience. Thanks.

1 Like

Hey @User-1b537cd87c! Welcome to the Forums!

Unfortunately, you can not remove the Capsule component from the Third Person Character blueprint or any Character blueprint in UE. They are the root of the entire blueprint.

Instead, you will have to create a new pawn blueprint ( + Add → Blueprint Class → Pawn) and create a custom character there that can use your custom collision.

Is there a particular reason you need a flat bottom instead of the included capsule? Keep in mind that capsules are also useful for things like moving up and down angles, steps, etc.

Any additional information will be a big help in solving your problem!

1 Like

i know for me personally i’m making a 2D top down game, and a rounded collision capsule when it runs into a square tile with collision allows the player to kind of rotate around the objects instead of just stopping. For me id love to remove the collision capsule and replace it with a box. When i just set the collision capsule to ignore all, and add a box with the capsules preset options, on a tile map I walk through all my collision because the pawn uses the capsule for movement still.

I don’t mind making my own pawn class but idk how, i cannot seem to find any good tutorials out there either.

You can do this by re-writing 90% of the character class in C++.
Other than that. No. You are stuck with the capsule, which is what all movement is based on in the rest of the character class.

you can always add a cube to the character, make it not render, and manually check collision


What is still not possible and should be is to rotate the capsule so you can have horizontal characters, but it’s not like Epic listens to the billion and one forum topics about how having it locked to a predefined item is detrimental to development or GAF really


2 Likes

Not a direct solution for your question, but this might be useful :

There’s an option in the Character Movement component to use a flat base instead of a round one.


Use Flat Base for Floor Checks : Performs floor checks as if the character is using a shape with a flat base. This avoids the situation where characters slowly lower off the side of a ledge (as their capsule ‘balances’ on the edge).

4 Likes

for me this would be perfect if I could map the top flat too. My current workaround was just to turn collision off in the capsule and paste the original settings into the box for collision. At first this didn’t work because my character would walk through tile map collisions still but after a day it just started working correctly for no reason lol.

@Quetzalcodename could you explain it better? I need to have multiple capsule components, because my main one have to be small when I jump. I’m doing parkour obstacles trajectory, but I’m having trouble because of the capsule component. The ones I added on my feet aren’t working.

Well, not sure what did TS, but I have just made capsule radius smaller and then I have added my own box collision.
Maybe you can try to reduce it to zero and then pray for the better :slight_smile:
image

For a player collision, you can create whatever Pawn sublcass you want, and add whatever collision object on it you want, no problem! Consider cars, for example.

For a character collision, using the built-in Character movement component, and Character actor subclass, then, no, it’s very strongly tied to using a capsule. It’s not even “physically simulated” in the sense that a typical crate/block would be, it’s more like forward kinematics, so “just add a second collider and make the capsule small” is also unlikely to work.

If you want a fancy simulated humanoid, you probably don’t want to use Character, but instead want to subclass Pawn directly, add your own skinned mesh component and animation blueprint, and add your own physically interacting objects, and write code to drive the skeleton based on the objects (or vice versa.)

1 Like

I tryed, but seems not work. UPD. On trid person character seems work. On ALSv4 character seems not work. UPD2. It work and on ALs but not like expected. On stair it jumping. And agains many cubes person floating close to gubes like same with capsule. So almost nothing better. sadly


Hey! I hope I’m not too late. My character is a horizontal character (a cat), so this is the exact comment I’m looking for! I have tried every solution, including the option you recommended - I tried attaching a static mesh (with collision) onto my character’s head, and surprisingly even this doesn’t work as the static mesh magically doesn’t have collision all of a suddenđŸ˜”
Let me know if there are any other simple solutions you can think of

No. Same with fish or horses, you have to create your own custom movemebt component


Character’s hit collision is driven by its movement component, so what you need to do is adding the collision component you want, then call UCharacterMovementComponent::SetUpdatedComponent to set the newly added collision component, then it should work.
The same applies for projectile actor with a projectile movement component in it.

About half the responses here seem to be suggesting forcing a square peg into a round hole. Which is a terrible mindset to approach your projects with, in my opinion.

If your design demands a box collider instead of a capsule, you write your own character controller instead of trying to jury-rig ones that have been written for you. Plain and simple.

Don’t be lazy. Do the leg work and learn some valuable skills in the process. Otherwise you’ll be trying to jury-rig your entire game, doing as little work yourself as possible, and learning next to nothing.