USkinnedMeshComponent::SetPhysicsAsset

Override the Physics Asset of the mesh.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

USkinnedMeshComponent::SetPhysicsAsset()

USkeletalMeshComponent::SetPhysicsAsset()

References

Module

Engine

Header

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

Include

#include "Components/SkinnedMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SkinnedMeshComponent.cpp

Syntax

virtual void SetPhysicsAsset
(
    class UPhysicsAsset * NewPhysicsAsset,
    bool bForceReInit
)

Remarks

Override the Physics Asset of the mesh. It uses SkeletalMesh.PhysicsAsset, but if you'd like to override use this function

Parameters

Parameter

Description

NewPhysicsAsset

New PhysicsAsset

bForceReInit

Force reinitialize