# Spline Mesh - No Collision in shipping (complex collision)

**URL:** <https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819>\
**Category:** World Creation\
**Tags:** spline-mesh-componen, unreal-engine, Physics, Collision, question\
**Created:** [March 23, 2017, 9:18pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819 "2017-03-23T21:18:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [March 23, 2017, 9:18pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/1 "2017-03-23T21:18:50Z")

</div>

Hey,

I have got the very annoying problem that I want to create and modify a spline mesh during runtime with collisions. It works perfectly in the editor and standalone version but as soon as I try to build my shipping version it has no collision at all.  
I have to use complex collision since I am working with quite complex shapes and need to have them complex. I don’t know what I should do. I have tried different solutions like adding “UEBuildConfiguration.bRuntimePhysicsCooking = true;” to the UEBuildwindows.cs under " public override void ValidateUEBuildConfiguration()". But that didn’t work.  
I have removed for testing purpose every mention of “#if WITH\_EDITOR || WITH\_RUNTIME\_PHYSICS\_COOKING” in the SplineMeshComponent.cpp but that didn’t work either.  
I am getting pretty frustrated at the moment since I can’t figure out where the problem is when it is working perfectly in editor and standalone.

Thanks

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 29, 2017, 2:38pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/2 "2017-03-29T14:38:51Z")

</div>

Hi Nobody,

Just to verify, how are you setting the mesh and the collision state? Are you doing this all at runtime? Some screenshots of your setup could help.

I’m not sure what will work with your setup but you might be able to work around the issue by setting the mesh and collision directly in the BP before play begins.

---

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [March 29, 2017, 5:17pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/3 "2017-03-29T17:17:24Z")

</div>

Hey,

I have now upgraded to 4.15 and then after setting “WITH\_RUNTIME\_PHYSICS\_COOKING=1” in the ModuleRules.cs I got at least simple collision working on the spline mesh component. It sorta works but it is not the longterm solution I would want with complex collision where I still get no collision.  
I am using this for my game on Steam where I have an ingame editor and would want to have complex collision on those splines for accurate collision detection with different physical materials.

![132050-rotat2.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/e/2fe768ac66623a5721979a9b0f4c9395b0a102f2.gif)

I am not sure if there is anything else I might have to set to 1 to be able to get complex collision working and I see from your answer that it should be possible?

Is there anything besides WITH\_RUNTIME\_PHYSICS\_COOKING=1 which I would need?

Thanks

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [April 20, 2017, 5:41pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/4 "2017-04-20T17:41:10Z")

</div>

Sorry for the delay.

There are some limitations to runtime physics cooking on mobile devices. What platform are you packaging for?

I tested a simple setup with “Use Complex as Simple” collision and it worked fine in a windows packaged project. Would you mind providing a small test project that we can test on this end?

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [April 25, 2017, 5:35pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/5 "2017-04-25T17:35:58Z")

</div>

We haven’t heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you’re still experiencing this issue, please feel free to post back here with additional information to reopen the post.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![Imagine-Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Imagine-Games](https://forums.unrealengine.com/u/Imagine-Games)\
**Post date:** [October 12, 2018, 9:01pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/6 "2018-10-12T21:01:26Z")

</div>

why isn’t this allowed at runtime for windows(or any other platform) builds? why does it work in-editor but not at runtime… that doesn’t really make sense. so here we are prototyping a game, and boom fantastic procedurally generated spline meshes look and feel so cool in game, and suprise package a .exe and now it doesn’t work… just seems like there should be some warning before hand to let people know not to waste their time with this…

---

<div class="post-metadata">

**Author:** ![Metalwrath](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/metalwrath/32/741996_2.png) [@Metalwrath](https://forums.unrealengine.com/u/Metalwrath)\
**Post date:** [August 25, 2020, 12:09pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/7 "2020-08-25T12:09:41Z")

</div>

And still no solution? This engine is very frustrating sometimes.

---

<div class="post-metadata">

**Author:** ![Metalwrath](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/metalwrath/32/741996_2.png) [@Metalwrath](https://forums.unrealengine.com/u/Metalwrath)\
**Post date:** [August 27, 2020, 5:17pm UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/8 "2020-08-27T17:17:10Z")

</div>

I found a solution for UE 4.25 (probably for previous versions too, but I didn’t test)

Simply go to the meshes that you are using in your spline, In details section, enable “Allow CPUAccess” under General Settings.

---

<div class="post-metadata">

**Author:** ![Imagine-Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Imagine-Games](https://forums.unrealengine.com/u/Imagine-Games)\
**Post date:** [August 28, 2020, 1:21am UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/9 "2020-08-28T01:21:28Z")

</div>

confirmed this worked in 4.24! thanks for the solution!

---

<div class="post-metadata">

**Author:** ![Cod3rChick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cod3rchick/32/596803_2.png) [@Cod3rChick](https://forums.unrealengine.com/u/Cod3rChick)\
**Post date:** [February 28, 2023, 6:14am UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/10 "2023-02-28T06:14:47Z")

</div>

This works for me in 5.1! Thank you so much for sharing the solution!!! 💜

---

<div class="post-metadata">

**Author:** ![handuoduo3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@handuoduo3](https://forums.unrealengine.com/u/handuoduo3)\
**Post date:** [January 26, 2024, 5:08am UTC](https://forums.unrealengine.com/t/spline-mesh-no-collision-in-shipping-complex-collision/388819/12 "2024-01-26T05:08:54Z")

</div>

i have the same problem in the version 5.2, What’s more i can’t find “Allow CPUAccess” in details section. Hope anser! 😭😭😭😭😭
