Download

Support for Rebuilding Spline Mesh Collision in Packaged Games

Dear Friends at Epic,

I would love to be able to offer people the use of spline meshes in my packaged game with my game-specific level editor!

I cant do this though until we are able to rebuild spline mesh collision at runtime.

I am requesting that you please consider adding the ability to rebuild collision in packaged game!

This request is similar to the request for being able to rebuild collision for dynamically generated meshes :slight_smile:

Please consider it dearly as it would mean so much for many people’s projects to be able to rebuild collision in a packaged game setting!


**Code For Reference**

For reference here is what I am talking about

SplineMeshComponent



```

void USplineMeshComponent::CreatePhysicsState()
{
#if WITH_EDITOR
	**// With editor code we can recreate the collision if the mesh changes**
	const FGuid MeshBodySetupGuid = (StaticMesh != NULL ? StaticMesh->BodySetup->BodySetupGuid : FGuid());
	if (CachedMeshBodySetupGuid != MeshBodySetupGuid)
	{
		RecreateCollision();
	}
#else
	**// Without editor code we can only destroy the collision if the mesh is missing**
	if (StaticMesh == NULL && BodySetup != NULL)
	{
		DestroyBodySetup();
	}
#endif

	return Super::CreatePhysicsState();
}

```




Thanks for everything Epic!

Rama

Hi Rama, I agree with you. It would be incredibly helpful if there was a way to regenerate collision meshes of SplineMeshComponents during runtime. This could allow for some interesting scenarios in which part of the terrain or obstacles dynamically change and the player has to respond to them. Have you heard anything about this possibly becoming part of the engine in the future?

It might be in 4.5!

A lot of runtime physics recooking is being added in 4.5!

Special thanks to James G and Ori Cohen!

But I am not sure yet :slight_smile:

Rama

Is it resolved yet? I am on 4.6 and really need spline mesh collision at runtime. Our whole game revolves around it now and I only just found it out after trying to package it for Windows.

I would like this too.

Still waiting… is anyone working on this or should I start looking at methods of faking it?

Hello Rama,

I was reading over your post and I thought that it would make a good feature request. I written a report (UE-15203) and I have submitted it to the developers for further consideration. Thank you for your time and information.

Make it a great day

That’d be sweet indeed…

Hi, it’s been 5 years. I’m wondering if this issue has been fixed? I’m still unable to get any collision on dynamically spawned spline meshes in packaged game. Thanks!