When setting ComplexCollisionMesh of StaticMesh asset, CollisionPreset that is actually applied becomes the setting on the drawing mesh side.
It seems that ComplexCollisionMesh is not considered in UStaticMeshComponent :: GetBodySetup (), so if you modify this as below, the setting on the collision mesh side will be reflecte.
UBodySetup* UStaticMeshComponent::GetBodySetup() { if(GetStaticMesh()) { if(GetStaticMesh()->ComplexCollisionMesh) { return GetStaticMesh()->ComplexCollisionMesh->BodySetup; } return GetStaticMesh()->BodySetup; } return NULL; }
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-89922 in the post.
1 |
Component | UE - Simulation - Physics |
---|---|
Affects Versions | 4.23, 4.24 |
Created | Mar 3, 2020 |
---|---|
Resolved | Jul 19, 2022 |
Updated | Jul 19, 2022 |