# Batched line traces 

**URL:** <https://forums.unrealengine.com/t/batched-line-traces/2659492>\
**Category:** Programming & Scripting\
**Tags:** linetrace, unreal-engine, Physics, question\
**Created:** [September 24, 2025, 2:21pm UTC](https://forums.unrealengine.com/t/batched-line-traces/2659492 "2025-09-24T14:21:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lorenord](https://forums.unrealengine.com/u/Lorenord)\
**Post date:** [September 24, 2025, 2:21pm UTC](https://forums.unrealengine.com/t/batched-line-traces/2659492/1 "2025-09-24T14:21:38Z")

</div>

Is it possible to run several line traces (as in UWorld::LineTraceSingleByChannel) in batch?

I’m looking for something similar to Unity’s API function [RaycastCommand.ScheduleBatch](https://docs.unity3d.com/6000.2/Documentation/ScriptReference/RaycastCommand.ScheduleBatch.html). I looked into both the low level and high level chaos API in the Unreal Engine 5.6 source code but couldn’t find anything similar.

Interestingly, I found in the engine source code in`UDeformableGameplayComponent::DetectEnvironmentCollisions`(a component used in the [Chaos Flesh system](https://dev.epicgames.com/documentation/en-us/unreal-engine/chaos-flesh-overview#worldsolverinteractions)), that they are are batching a bunch of line traces using `Chaos::PhysicsParallelForRange`. Because this is code from engine source code, I assume this would be the preferred way of batching multiple line traces, however I was wondering if there is another way or some function exposed through some API that is more similar to [RaycastCommand.ScheduleBatch](https://docs.unity3d.com/6000.2/Documentation/ScriptReference/RaycastCommand.ScheduleBatch.html).

---

<div class="post-metadata">

**Author:** ![Lorenord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lorenord](https://forums.unrealengine.com/u/Lorenord)\
**Post date:** [October 3, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/batched-line-traces/2659492/2 "2025-10-03T14:28:04Z")

</div>

Never mind, I debugged and profiled `Chaos::PhysicsParallelForRange`, and turns out it was what I was looking for.
