USkeletalMeshComponent::SetPhysicsAsset

Override the Physics Asset of the mesh.

Windows
MacOS
Linux

Override Hierarchy

USkinnedMeshComponent::SetPhysicsAsset()

USkeletalMeshComponent::SetPhysicsAsset()

References

Module

Engine

Header

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

Include

#include "Components/SkeletalMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.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

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