# Realtime collision not generated for splinemeshes in packaged game

**URL:** <https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110>\
**Category:** World Creation\
**Tags:** unreal-engine, Physics, Collision, bug-report, packaging-projects, question\
**Created:** [February 20, 2016, 8:04pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110 "2016-02-20T20:04:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Requios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Requios](https://forums.unrealengine.com/u/Requios)\
**Post date:** [February 20, 2016, 8:04pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/1 "2016-02-20T20:04:10Z")

</div>

This bug occurs on the following scenario: take a splinemesh with no default static mesh and collision turned off. Then add a static mesh. After that turn collision back on. And there is the bug: the splinemesh has working collision in editor, but not in a packaged game.

After searching a bit I found this, it is apparently a year-old bug that still hasn’t been fixed: [Spline mesh collision missing from packaged build - World Creation - Unreal Engine Forums](https://answers.unrealengine.com/questions/175321/spline-mesh-collision-missing-from-packaged-build.html)

Recreate: make a blueprint with a splinemesh component and add this (the New Mesh being a mesh that has collision):

 ![79251-splinemeshcollision.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/3/88373ac5a4afbb9f1e79c592c6036e1b71b5e5b8.png)

Also enable mouse events by making a custom gamemode and playercontroller. Then when you click on it in editor it should print Hello. And when packaged it doesn’t print that.

Packaged for windows 64 bit

Version: 4.11 Preview 5 (also tested in 4.10.3)

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [February 23, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/2 "2016-02-23T17:06:36Z")

</div>

Hello,

I have been able to reproduce your issue, and have entered a bug report (UE-27296). Thank you for your report. I will provide updates on this issue as they become available.

Have a great day

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 14, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/3 "2016-10-14T14:19:59Z")

</div>

I have this same bug in a 4.13 project as of 14 Oct 16. I’ve tried packaging for Windows and HTML5, same result with both packages.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 14, 2016, 2:24pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/4 "2016-10-14T14:24:21Z")

</div>

Hey H.B. Fowler,

Are you able to reproduce this issue in a clean project? If so, can you please provide a detailed list of repro steps?

I’ve heard other reports of this issue lately but haven’t seen it occurring on my end so I’d love to have a consistent repro case for it.

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 19, 2016, 1:55pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/5 "2016-10-19T13:55:55Z")

</div>

Haven’t had time to reproduce in a clean project. What I have been able to determine is that the problem occurs with spline meshes that are dynamically generated at run time. If I place the spline meshes in the map directly, collision works when it’s packaged.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 25, 2016, 3:27pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/6 "2016-10-25T15:27:18Z")

</div>

Sorry for the delay. I’ve spent some time attempting to reproduce the issue, but I haven’t been able to do so as of yet.

Would you mind providing a screenshot of your setup that you are using when you’re seeing the issue occur?

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 25, 2016, 5:12pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/7 "2016-10-25T17:12:03Z")

</div>

I can provide you with a link to download the project if you like. It’s a class project so I have it uploaded to the cloud for grading purposes. If you can provide me with an email address I can send you a link. I’d prefer not to provide the link publicly.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 25, 2016, 5:19pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/8 "2016-10-25T17:19:06Z")

</div>

Here you go, you can PM me a link to download it on the forums: [https://forums.unrealengine.com/member.php?160394-Sean-Flint](https://forums.unrealengine.com/member.php?160394-Sean-Flint)

Thanks

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 25, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/9 "2016-10-25T18:29:55Z")

</div>

I’m not seeing an option to send you a PM, sent a friend request. Do I need to be a friend first, or do some other thing to send you a PM?

---

<div class="post-metadata">

**Author:** ![fishhead2567](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fishhead2567](https://forums.unrealengine.com/u/fishhead2567)\
**Post date:** [October 25, 2016, 6:38pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/10 "2016-10-25T18:38:34Z")

</div>

H. B. Fowler,

For our project, we found a work around to this issue by adding a box collision and calculating the extreme points of the spline’s control points. We wrapped it in this collision box and set it to generate overlaps only. We were then able to create this box on begin play, and perform the collision queries we needed with the box.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 26, 2016, 12:25pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/11 "2016-10-26T12:25:23Z")

</div>

The Send Private Message button should be right under the Epic Staff badge under my name:

![112557-10-26-2016+8-24-52+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/a/fdab987ae71f27b7405744d6c2813f8b1a948f53.png)

Are you able to see that & are you sure that you’re logged in when you’re looking at the page?

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 26, 2016, 1:30pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/12 "2016-10-26T13:30:41Z")

</div>

I’ve verified that I’m logged in, only options I have are to add as friend, ignore, then the find post and threads bit.

[edited]

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 26, 2016, 2:11pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/13 "2016-10-26T14:11:26Z")

</div>

I’ve got it, thanks. Feel free to delete it.

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 26, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/14 "2016-10-26T14:27:07Z")

</div>

Awesome.

Of note: It’s a 4.13.0 project, the spline meshes in question are loaded in the runnerTrack Map. The straight spline mesh attached to the starting platform and manually placed in the level appears to work, the other spline meshes are brought in dynamically at runtime and those are the ones that the collision is not working on. Works fine in preview mode, but not when packaged.

If you have any question feel free to email me: [edited]

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [October 26, 2016, 2:44pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/15 "2016-10-26T14:44:00Z")

</div>

Unfortunately, it looks like the project is failing to package on my end. Are you experiencing the same issue if you attempt to package the build you sent?

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [October 26, 2016, 3:10pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/16 "2016-10-26T15:10:37Z")

</div>

Delete the VehicleAdvHud object in the “/VehicleAdvPB/Blueprints/Herb” directory.

Forgot to delete that before I zipped it, sorry.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 3, 2016, 1:25pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/17 "2016-11-03T13:25:54Z")

</div>

Sorry for the delay. I spent some time in the project, but was unable to determine what would be causing the issue. Unfortunately, at this time, we are unable to dedicate further resources to debugging that project, as it is fairly complicated in terms of the setup. If you are able to reproduce the error in a simplified test project, please let me know and I’ll be glad to continue investigating.

---

<div class="post-metadata">

**Author:** ![H.B.Fowler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H.B.Fowler](https://forums.unrealengine.com/u/H.B.Fowler)\
**Post date:** [November 4, 2016, 4:26pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/18 "2016-11-04T16:26:53Z")

</div>

Unfortunate, but I understand. Thanks for looking into it.

---

<div class="post-metadata">

**Author:** ![PhoeniX-Storms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phoenix-storms/32/464594_2.png) [@PhoeniX-Storms](https://forums.unrealengine.com/u/PhoeniX-Storms)\
**Post date:** [January 3, 2021, 8:19pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/19 "2021-01-03T20:19:05Z")

</div>

Still an issue in 4.26.0

---

<div class="post-metadata">

**Author:** ![sephquartz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sephquartz](https://forums.unrealengine.com/u/sephquartz)\
**Post date:** [April 7, 2021, 11:15pm UTC](https://forums.unrealengine.com/t/realtime-collision-not-generated-for-splinemeshes-in-packaged-game/348110/20 "2021-04-07T23:15:15Z")

</div>

Any updates on this? Would love a dynamically generated spline mesh in my game that has collision
