FBodyInstance::ApplyMaterialToShape_AssumesLocked

Apply a material directly to the passed in shape.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h

Include

#include "PhysicsEngine/BodyInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp

Syntax

static void ApplyMaterialToShape_AssumesLocked
(
    const FPhysicsShapeHandle & InShape,
    UPhysicalMaterial * SimplePhysMat,
    const TArrayView< UPhysicalMaterial * > & ComplexPhysMats,
    const TArrayView< FPhysicalMaterialMaskParams > * ComplexPhysMatMasks
)

Remarks

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

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss