# Blocking collision on a pawn with static mesh

**URL:** <https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [May 28, 2024, 10:31am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795 "2024-05-28T10:31:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 10:31am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/1 "2024-05-28T10:31:04Z")

</div>

I have very many pawns with static meshes (if I do them characters, I get the unbelieveable brakes) and I want to make them move with blocking collisions. Currently they overlap everything, including ground. The CCD is on. I tried to enable “SimulatePhysics”, my static mesh has a simple collision, and I have added mass to the pawn, but the necessary checkbox is still grayed out. The sweep does not work because it sweeps only against root component. Even [this very complex solution](https://forums.unrealengine.com/t/sweep-only-works-with-root-component/319976/13) won’t work because the other actors can also have multiple colliding components (or I don’t know something). What I can still do to have blocking collisions?

---

<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:** [May 28, 2024, 10:46am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/2 "2024-05-28T10:46:31Z")

</div>

> [@Etyuhibosecyu](#):
>
> the necessary checkbox is still grayed out

It means the static mesh asset does not even have a collider. Double click the asset and add a collider. Or use a blocking volume as a collider while the mesh serves as a visual indicator only.

* * *

When it comes to a Pawn with multiple meshes, you’d need to rely on physics to detect collision and use sliding collision. It will work OK with a floating movement component. As in, you expect this, right?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/f/d9fcdb78c1797277a6c244582e93d3dbd581d1dc.jpeg)

Default collision settings, only the root component simulates physics.

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 11:23am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/3 "2024-05-28T11:23:54Z")

</div>

@Everynone, thanks, it works, at least with the ground! I have even disabled the physics (because it also hugely brakes) (if what, my GPU is 4090) and used just floating pawn movement with slight -Z component of the vector. Now I try to package the project and see FPS in the ready EXE. But there is a question: will the box collision in the static mesh be faster than the capsule because of the triangles count? Or is the capsule collision not based on triangles?

---

<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:** [May 28, 2024, 11:29am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/4 "2024-05-28T11:29:06Z")

</div>

> [@Etyuhibosecyu](#):
>
> GPU is 4090

Afaik, the collision has nothing to do with the GPU (unless you we’re talking special Niagara particles). It’s all CPU busywork.

> will the box collision in the static mesh be faster than the capsule because of the triangles count? Or is the capsule collision not based on triangles?

Don’t quote me on that but there exist, apparently, special optimisations for primitive colliders like boxes & spheres, making them efficient. I’d assume that a capsule is 2 spheres and a box, potentially further optimised with some close-to-the-metal binary magic. I am _guesstimating_.

* * *

But yes, as a general rule of thumb using plain boxes can be a major optimisation providing the scope is grand enough.

---

<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:** [May 28, 2024, 11:37am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/5 "2024-05-28T11:37:19Z")

</div>

> [@Etyuhibosecyu](#):
>
> I get the unbelieveable brakes

How is commonfolk supposed to enjoy the content if your 4090 can’t hack it?! 😇

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 11:38am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/6 "2024-05-28T11:38:20Z")

</div>

I have tested in a packaged game and got 80-90 FPS with 7k pawns with all reduced-size textures (max 1024x1024, not including some new models on which I haven’t still do that reducing), which is, probably, not enough. Without these new pawns it was full 144 (allowed by the monitor). Which I can still do (disable)?

> [@Everynone](#):
>
> It’s all CPU busywork.

CPU is 4.8 GHz.  
Also I have ensured that the collision works fully. Thanks again!  
Also, how to construct skeletal mesh on these pawns on the client at runtime? The “Construct Object from Class” node does not work.

---

<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:** [May 28, 2024, 11:42am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/7 "2024-05-28T11:42:50Z")

</div>

> [@Etyuhibosecyu](#):
>
> Which I can still do?

I’d seriously revaluate the script, running a hundred pawns with physics on does not tax my machine. And I’m nowhere nearly top end specs…

* * *

If adding some pawns breaks the performance, you have scripting issues only you can identify. For everything else:

[https://docs.unrealengine.com/4.26/en-US/TestingAndOptimization/PerformanceAndProfiling/](https://docs.unrealengine.com/4.26/en-US/TestingAndOptimization/PerformanceAndProfiling/)

It’s a deep dive and there are no easy answers 👆 Also:

> **[Optimizing UE5: Rethinking Performance Paradigms for High-Quality Visuals -...](https://dev.epicgames.com/community/learning/talks-and-demos/Vpv2/unreal-engine-optimizing-ue5-rethinking-performance-paradigms-for-high-quality-visuals-part-1-nanite-and-lumen-unreal-fest-2023)**
>
> Unreal Engine’s new graphics features offer incredible power, and have changed the game in terms of performance. But everyone knew the rules for the old...

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 11:51am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/8 "2024-05-28T11:51:03Z")

</div>

@Everynone, will “FloatingPawnMovement” work if I disable also Pawn and make them just Actors? And will actor be faster than pawn? Maybe I can disable something common that essentially breaks performance without very complex work? And:

> [@Etyuhibosecyu](#):
>
> how to construct skeletal mesh on these pawns on the client at runtime? The “Construct Object from Class” node does not work.

---

<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:** [May 28, 2024, 11:54am UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/9 "2024-05-28T11:54:49Z")

</div>

No. There is no magical button that makes the game optimised. It’s your job to **laboriously** make it so. There’s a reason entire departments are created to handle that. You can `Add Skeletal Mesh Component` at run time.

* * *

I’d look into what you run on Tick (or every frame in a timeline / timer), especially long loops - the latter being absolute performance killers.

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 12:12pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/10 "2024-05-28T12:12:25Z")

</div>

Suddenly my actors again stopped to move without physics! What could I disable that I shouldn’t? Here is my tick:

 ![2024-05-28_15-08-08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/5/09581731e985c8a56edd32a7a356c4c4e782a2e9.png)  
And here is my inner function:  
 ![2024-05-28_15-08-31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/5/9c526bf83f550ddf18c8e56b6163d32178bb4b94.jpeg)  
Where are the long loops there? I don’t see them.

---

<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:** [May 28, 2024, 12:16pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/11 "2024-05-28T12:16:23Z")

</div>

I never said you had any, merely suggested it could be and often is a culprit. And I hereby absolutely refuse to untangle that spaghetti.

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 12:23pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/12 "2024-05-28T12:23:15Z")

</div>

@Everynone, Floating Pawn Movement works only with Simulate Physics enabled? I know it just worked without that checkbox, I have even packaged game with this movement working, and suddenly it stopped to work. The static mesh has a capsule collision, Max Speed is set to correct value, Can Walk to true. What could happen?

---

<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:** [May 28, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/13 "2024-05-28T12:25:56Z")

</div>

> [@Etyuhibosecyu](#):
>
> Floating Pawn Movement works only with Simulate Physics enabled?

It does not need physics. You do not need anything special. It’s just one node. However, you’re driving it into ground with -Z. Perhaps that’s it, although that usually works fine. But then again, we do not know how the colliders look like or the surface we’re moving on.

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 1:08pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/14 "2024-05-28T13:08:19Z")

</div>

As for now, I made the target constructions just actors, not pawns/characters, and they move with “Projectile Movement” and are blocked by the ground. Is this solution valid, or “Projectile Movement” is not suitable for the actors that are moving slowly (1.5-2 m/s) and in the different directions?

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 1:45pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/15 "2024-05-28T13:45:27Z")

</div>

I have tested the game with full count of these actors - 70k - and all full size textures, and FPS Monitor shows near 60, but the reaction to input is near once per second, and the other actors update their position near 3-5 times for second. I understand that optimization is my work, but @Everynone, could you just say: are these results normal, regarding that the server is launched on the same machine and consuming the most of the CPU/GPU resources? And the message #14 is also actual.

---

<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:** [May 28, 2024, 1:56pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/16 "2024-05-28T13:56:38Z")

</div>

> [@Etyuhibosecyu](#):
>
> full count of these actors - 70k

Seventy thousands actors is not normal. If you want to have that many entities, you need to employ different methods:

[https://www.youtube.com/results?search\_query=ue5+crowds](https://www.youtube.com/results?search_query=ue5+crowds)

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 1:59pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/17 "2024-05-28T13:59:31Z")

</div>

@Everynone, but I seem to already say: this count is in the whole world, only 5-10 are visible at the same time. And is the “Projectile Movement” valid for the actors that move slowly (1.5-2 m/s) and in the different directions?

---

<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:** [May 28, 2024, 2:03pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/18 "2024-05-28T14:03:16Z")

</div>

> [@Etyuhibosecyu](#):
>
> only 5-10 are visible at the same time

Invisible actors still compute logic. They’re just not rendered by the GPU, culled automatically.

> And is the “Projectile Movement” valid for the actors that move slowly (1.5-2 m/s) and in the different directions?

I’ve used PMC to simulate fish and other strange things, it’s not the most performant thing but it worked in my case. No one can possibly produce a definite answer to your questions without knowing what you’re doing.

* * *

Why not run profiling and see what is eating up performance?

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 2:05pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/19 "2024-05-28T14:05:10Z")

</div>

> [@Everynone](#):
>
> Invisible actors still compute logic.

Is it possible to disable that?

> [@Everynone](#):
>
> it’s not the most performant thing

Is Floating Pawn Movement More performant?

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [May 28, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795/20 "2024-05-28T14:06:19Z")

</div>

> [@Everynone](#):
>
> Why know run profiling and see what is eating up performance?

It’s sure that it is new actors because before their adding the game was MUCH more performant.

[Next page](https://forums.unrealengine.com/t/blocking-collision-on-a-pawn-with-static-mesh/1876795.md?page=2)
