Hello! I’m trying to get how thick the mesh is by spheretracing the inverted normal of the forward trace and adding a certain distance. The mesh is not being detected on the level on starter content but it works find on spheres and cubes. Am i doing something wrong?
FVector startLoc = GetMesh()->GetSocketLocation(socketTraceLocation) + (-*ObstacleNormal * ThicknessTraceLength);
TArray<AActor*, FDefaultAllocator> actorsToIgnore;
return UKismetSystemLibrary::SphereTraceSingle(
this,
startLoc,
GetObstacleLocation(),
ThicknessSphereRadius,
UEngineTypes::ConvertToTraceType(ECollisionChannel::ECC_GameTraceChannel1),
false,
actorsToIgnore,
EDrawDebugTrace::ForOneFrame,
outHit,
true,
FLinearColor::Green,
FLinearColor::Red,
1.0f);
Green = No Hit Result
Red = Hitting something
This is the view inside the object of picture 2.