# Should I use the default capsule collision components for hitboxes?

**URL:** <https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [December 3, 2024, 12:53pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038 "2024-12-03T12:53:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phteven28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Post date:** [December 3, 2024, 12:53pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/1 "2024-12-03T12:53:15Z")

</div>

Hey, I have a character set up using collision capsule components attached to all the relevant parent sockets to make a somewhat accurate hitbox for weapons etc.

I couldn’t find anything on this topic but are the default collision capsules very accurate or would I be better off making wireframe spheres and capsules in blender with more subdivisions but still far less vertices than something like the starter sphere mesh in UE??

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 3, 2024, 12:58pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/2 "2024-12-03T12:58:52Z")

</div>

> [@Phteven28](#):
>
> are the default collision capsules very accurate

Are you finding them inaccurate? Afaik, there are special optimisations for primitives on the lower level, closer to the metal; or so I read once upon a time.

---

<div class="post-metadata">

**Author:** ![Phteven28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Post date:** [December 3, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/3 "2024-12-03T13:05:40Z")

</div>

No I’m not having issues with them but I’ve seen the capsules and spheres used in other games and they have significantly more subdivisions than the standard UE ones. So If i was going to do something like that I’d just rather do it now and not have to worry about it later

Again I couldn’t find much of anything regarding hitboxes and the collision components.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 3, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/4 "2024-12-03T13:11:12Z")

</div>

The primitives do not **use** triangles / polys to calculate collision, it’s just a bunch of math - a box, a sphere and a capsule are easy. Other shapes are not and only then we must fall back on Simple Collision (or multiple primitives). In many cases, Simple Collision is still a bunch of primitives + convex volume.

* * *

Were you to add your own custom colliders, you would, most likely, make it less accurate and less performant. Someone please do correct me if I am mistaken. 😇

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [December 3, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/5 "2024-12-03T13:16:12Z")

</div>

Either use default unreal capsule/sphere/box (or anything else it offers) collision, or use complex as simple if you want to be mesh accurate.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 3, 2024, 1:17pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/6 "2024-12-03T13:17:36Z")

</div>

> [@Dejan33](#):
>
> complex as simple

I sense OP is swinging swords / spraying bullets at mobile targets. So complex collision ain’t gonna _cut_ it. One way or another, they wanted it more efficient, not less.

But yeah, stick to the native primitive collider where you can.

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [December 3, 2024, 1:20pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/7 "2024-12-03T13:20:47Z")

</div>

There could be only one enemy in their game, than it would be ok to use complex.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 3, 2024, 1:21pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/8 "2024-12-03T13:21:21Z")

</div>

Complex collision cannot be mobile. You can’t move or simulate it.

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [December 3, 2024, 1:21pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/9 "2024-12-03T13:21:50Z")

</div>

Unreal should fix that.

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [December 3, 2024, 1:23pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/10 "2024-12-03T13:23:10Z")

</div>

Maybe they have a static enemy.

---

<div class="post-metadata">

**Author:** ![Phteven28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Post date:** [December 3, 2024, 1:23pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/11 "2024-12-03T13:23:15Z")

</div>

the intention is for there to be quite a few enemies and yes mostly swords with some projectiles.

---

<div class="post-metadata">

**Author:** ![Phteven28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Post date:** [December 3, 2024, 1:24pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/12 "2024-12-03T13:24:37Z")

</div>

I’m perfectly happy to stick with the default collision components, just wanted to know of other potential implementations 🙂

---

<div class="post-metadata">

**Author:** ![Dejan33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dejan33/32/1194514_2.png) [@Dejan33](https://forums.unrealengine.com/u/Dejan33)\
**Post date:** [December 3, 2024, 1:27pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/13 "2024-12-03T13:27:45Z")

</div>

If complex (custom) collision is not mobile, you couldn’t use them anyway.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 2, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/should-i-use-the-default-capsule-collision-components-for-hitboxes/2167038/14 "2025-01-02T13:28:34Z")

</div>

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