# How can I ensure a fast moving actor collides with another?

**URL:** <https://forums.unrealengine.com/t/how-can-i-ensure-a-fast-moving-actor-collides-with-another/833014>\
**Category:** C++\
**Tags:** unreal-engine, Physics, CPP, question\
**Created:** [March 29, 2023, 10:32pm UTC](https://forums.unrealengine.com/t/how-can-i-ensure-a-fast-moving-actor-collides-with-another/833014 "2023-03-29T22:32:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiegoAce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DiegoAce](https://forums.unrealengine.com/u/DiegoAce)\
**Post date:** [March 29, 2023, 10:32pm UTC](https://forums.unrealengine.com/t/how-can-i-ensure-a-fast-moving-actor-collides-with-another/833014/1 "2023-03-29T22:32:22Z")

</div>

I have small physics actors that pass through other objects when moving too fast. For my game, I think solving this by checking for collision using a ray cast in the direction of the actor’s velocity would be better than changing the physics (like substepping). But I still want my objects to behave as if they naturally collided. When my ray cast detects a hit that the actor may otherwise pass through, what should I do to ensure it collides, or ensure it responds similarly as if it collided?

---

<div class="post-metadata">

**Author:** ![DiegoAce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DiegoAce](https://forums.unrealengine.com/u/DiegoAce)\
**Post date:** [March 30, 2023, 1:14pm UTC](https://forums.unrealengine.com/t/how-can-i-ensure-a-fast-moving-actor-collides-with-another/833014/2 "2023-03-30T13:14:45Z")

</div>

This is on 5.1.1.

---

<div class="post-metadata">

**Author:** ![nulled](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nulled/32/1103567_2.png) [@nulled](https://forums.unrealengine.com/u/nulled)\
**Post date:** [March 31, 2023, 12:23am UTC](https://forums.unrealengine.com/t/how-can-i-ensure-a-fast-moving-actor-collides-with-another/833014/3 "2023-03-31T00:23:12Z")

</div>

Adjust the substepping in the Engine:

1. Open your project settings by going to Edit \> Project Settings.

2. Navigate to the Physics section in the left-hand menu.

3. Under Physics Settings, locate the Substepping option and increase the value.  
The default value is 1, but you may need to increase it to a higher value depending on what you need.

4. Save to apply the changes to your project.

> ⚠ - Increasing the substepping may affect performance, so it’s important to balance the frequency of physics simulations with the needs of your project. Additionally, you may want to consider using collision detection and response events to handle collisions between objects, rather than relying solely on physics simulation. This can provide more precise control over the behavior of your objects and can help avoid issues with objects passing through each other at high speeds.

---

<div class="post-metadata">

**Author:** ![DiegoAce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DiegoAce](https://forums.unrealengine.com/u/DiegoAce)\
**Post date:** [March 31, 2023, 1:29am UTC](https://forums.unrealengine.com/t/how-can-i-ensure-a-fast-moving-actor-collides-with-another/833014/4 "2023-03-31T01:29:00Z")

</div>

Thanks but I meant I don’t want to change the substepping.
