UPrimitiveComponent::SetPhysMaterialOverride

Changes the current PhysMaterialOverride for this component.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::SetPhysMaterialOverride()

USkeletalMeshComponent::SetPhysMaterialOverride()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp

Syntax

virtual void SetPhysMaterialOverride
(
    class UPhysicalMaterial * NewPhysMaterial
)

Remarks

Changes the current PhysMaterialOverride for this component.

that if physics is already running on this component, this will not alter its mass/inertia etc, it will only change its surface properties like friction.

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