hello,
I have a modular character composed of Head and Body meshes. the head is the ‘main’ mesh and the body is another component that uses the head as its MasterPoseComponent to sync animations (I set this on my character’s BeginPlay function in cpp)
I’m trying to perform Traces against the character, for which I’ve set the meshes to collide per poly (which I absolutely need for what I’m doing).
The problem is the traces only work against the animated pose of the head, but completely fail to hit the animated pose of the body (and can only trace at the position of the default unanimated A-Pose of the character).
I did some investigation and narrowed it down to the use of a second mesh component with MasterPoseComponent. Using the same body mesh as a separate SkeletalMeshActor with animation traces properly.
Here’s the visual proof, with debug lines that show the trace and debug sphere/diamond to show the trace hits.
Trace against my character, correctly hitting the head mesh (hit is a bit inside the neck because of animation but its there)
Trace against my character, completely going through the hand and failing to hit:
Trace against my character, hitting the arm where it would be if it were in the default unanimated A-Pose:
Trace against a SkeletalMeshActor with only the body mesh, correctly hitting the hand in its animated position:
The only related post I found is [this][5], and I can’t even see this property called ‘Skip Simulating Bones’ to even try.
My traces come from cpp code, and I’m using LineTraceSingleByChannel. but I also tried SweepSingleByChannel, LineTraceMultiByChannel and skelMeshComp->LineTraceComponent, and the results are always the same.
The evidence is there, I’m calling it a bug.
This is in 4.11 preview4 and preview5 btw.
Can I has fix please?
cheers,
Chosker