UCollisionProfile::ConvertToCollisionChannel does not behave as expected
Hello, I'm currently working with custom object types for collision and I've found something really weird in the source code of UCollisionProfile::ConvertToCollisionChannel.
It came from a call to SphereOverlapActors which is given a
this will take the EObjectTypeQuery as an int and give it to UCollisionProfile::ConvertToCollisionChannel. The problem is that ObjectTypeMapping does not look like EObjectTypeQuery, so it is impossible that ObjectTypeMapping[Index] returns the good ECollisionChannel.
For example if you give ECC_PhysicBody to the function SphereOverlapActors, it will be converted to the ECollisionChannel ECC_Destructible.
I found this not normal at all, but I'm not very good with unreal collision yet, so maybe I'm using it wrong.
asked Aug 23 '18 at 01:04 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here