Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
Include |
#include "PhysicsEngine/BodyInstance.h" |
Source |
/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
static void ApplyMaterialToShape_AssumesLocked
(
const FPhysicsShapeHandle & InShape,
UPhysicalMaterial * SimplePhysMat,
const TArrayView< UPhysicalMaterial * > & ComplexPhysMats,
const TArrayView< FPhysicalMaterialMaskParams > * ComplexPhysMatMasks
)
Apply a material directly to the passed in shape.
this function is very advanced and requires knowledge of shape sharing as well as threading. Note: assumes the appropriate locks have been obtained
Parameter |
Description |
---|---|
PShape |
The shape we are applying the material to |
SimplePhysMat |
The material to use if a simple shape is provided (or complex materials are empty) |
ComplexPhysMats |
The array of materials to apply if a complex shape is provided |