Change Collison Object Type of a RigidBody on a SkeletalMeshComponent
I set up a PhysicsAsset on a SkeletalMeshComponent on my character, but I would like to change the collision object types of certain rigid bodies on the fly instead of using the collision object type of the mesh component. Is it possible? How it could be done?
asked Dec 06 '16 at 03:42 AM in C++ Programming
To my knowledge, collision channels and object types are limited to component scope. They cannot be applied further down the hierarchy to individual physics bodies. However, each body in the physics asset has an option to set a physics material (which can be different from the physics material applied to the whole mesh). From what I understood by going through https://docs.unrealengine.com/latest/INT/Engine/Physics/PhysicalMaterials/PhysMatUserGuide/ , these physics material overrides can be accessed through LineTrace (with the TraceComplex bool ON). There is a physics material output in the 'Hit' structure.
It can help you to distinguish between different physics bodies of your physics asset but I don't know how expensive it might be or that if this is something you were looking for. Cheers!
answered Dec 06 '16 at 11:02 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here