USkeletalMeshComponent

SkeletalMeshComponent is used to create an instance of an animated SkeletalMesh asset.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Components/SkeletalMeshComponent.h"

Syntax

class USkeletalMeshComponent :
    public USkinnedMeshComponent,
    public IInterface_CollisionDataProvider

Remarks

SkeletalMeshComponent is used to create an instance of an animated SkeletalMesh asset.

Variables

Name Description

Public variable

FPhysicsAggrega...

 

Aggregate

Physics-engine representation of aggregate which contains a physics asset instance with more than numbers of bodies.

Public variable

FSingleAnimatio...

 

AnimationData

Protected variable

TEnumAsByte< EA...

 

AnimationMode

Whether to use Animation Blueprint or play Single Animation Asset.

Public variable

TSubclassOf< UA...

 

AnimClass

The AnimBlueprint class to use. Use 'SetAnimInstanceClass' to change at runtime.

Public variable

FBlendedHeapCur...

 

AnimCurves

Temporary storage for curves

Public variable

UAnimInstance &...

 

AnimScriptInstance

The active animation graph program instance.

Public variable

uint8: 1

 

bAnimTreeInitialised

If true, AnimTree has been initialised.

Public variable

uint8: 1

 

bBlendPhysics

Enables blending in of physics bodies whether Simulate or not

Protected variable

uint8: 1

 

bClothingSimulationSuspended

Whether the clothing simulation is suspended (not the same as disabled, we no longer run the sim but keep the last valid sim data around)

Public variable

uint8: 1

 

bCollideWithAttachedChildren

Can't collide with part of attached children if total collision volumes exceed 16 capsules or 32 planes per convex

Public variable

uint8: 1

 

bCollideWithEnvironment

Can't collide with part of environment if total collision volumes exceed 16 capsules or 32 planes per convex

Public variable

uint8: 1

 

bDeferKinematicBoneUpdate

OptimizationWhether animation and world transform updates are deferred.

Public variable

uint8: 1

 

bDeferredKinematicUpdate

Indicates that this SkeletalMeshComponent has deferred kinematic bone updates until next physics sim.

Public variable

uint8: 1

 

bDisableClothSimulation

Disable cloth simulation and play original animation without simulation

Public variable

uint8: 1

 

bEnableLineCheckWithBounds

If true, line checks will test against the bounding box of this skeletal mesh component and return a hit if there is a collision.

Public variable

uint8: 1

 

bEnablePerPolyCollision

Uses skinned data for collision data.

Public variable

uint8: 1

 

bEnablePhysicsOnDedicatedServer

If true, simulate physics for this component on a dedicated server.

Public variable

uint8: 1

 

bForceRefpose

Misc If true, force the mesh into the reference pose - is an optimization.

Public variable

uint8: 1

 

bHasValidBodies

If true, there is at least one body in the current PhysicsAsset with a valid bone in the current SkeletalMesh

Public variable

uint8: 1

 

bIncludeComponentLocationIntoBounds

If true, the Location of this Component will be included into its bounds calculation (this can be useful when using SMU_OnlyTickPoseWhenRendered on a character that moves away from the root and no bones are left near the origin of the component)

Public variable

uint8: 1

 

bIsAutonomousTickPose

True if calling TickPose() from Autonomous networking updates.

Public variable

uint8: 1

 

bLocalSpaceKinematics

Temporary fix for local space kinematics.

Public variable

uint8: 1

 

bLocalSpaceSimulation

It's worth trying this option when you feel that the current cloth simulation is unstable.

Public variable

uint8: 1

 

bNoSkeletonUpdate

Skips Ticking and Bone Refresh.

Public variable

TArray< struct ...

 

Bodies

Array of FBodyInstance objects, storing per-instance state about about each body.

Public variable

int32

 

BodyIndex

Public variable

UBodySetup *...

 

BodySetup

Used for per poly collision.

Public variable

uint8: 1

 

bOldForceRefPose

If bForceRefPose was set last tick.

Public variable

uint8: 1

 

bOnlyAllowAutonomousTickPose

If true TickPose() will not be called from the Component's TickComponent function.

Public variable

uint8: 1

 

bPauseAnims

Pauses this component's animations (doesn't tick them, but still refreshes bones)

Public variable

uint8: 1

 

bPrevDisableClothSimulation

To save previous state

Public variable

uint8: 1

 

bPropagateCurvesToSlaves

If true, propagates calls to ApplyAnimationCurvesToComponent for slave components, only needed if slave components do not tick themselves

Public variable

uint8: 1

 

bRequiredBonesUpToDate

If false, indicates that on the next call to UpdateSkelPose the RequiredBones array should be recalculated.

Public variable

uint8: 1

 

bResetAfterTeleport

Reset the clothing after moving the clothing position (called teleport)

Public variable

uint8: 1

 

bShowPrePhysBones

Bool that enables debug drawing of the skeleton before it is passed to the physics.

Public variable

uint8: 1

 

bSimulationUpdatesChildTransforms

Indicates that simulation (if it's enabled) is entirely responsible for children transforms.

Public variable

uint8: 1

 

bSkipBoundsUpdateWhenInterpolating

Whether to skip bounds update when interpolating.

Public variable

uint8: 1

 

bSkipKinematicUpdateWhenInterpolating

Whether to skip UpdateKinematicBonesToAnim() when interpolating.

Protected variable

uint8: 1

 

bUpdateAnimationInEditor

If true, this will Tick until disabled

Public variable

uint8: 1

 

bUpdateJointsFromAnimation

If we should pass joint position to joints each frame, so that they can be used by motorized joints to drive the ragdoll based on the animation.

Public variable

uint8: 1

 

bUpdateOverlapsOnAnimationFinalize

Controls whether blending in physics bones will refresh overlaps on this component, defaults to true but can be disabled in cases where we know anim->physics blending doesn't meaningfully change overlaps

Public variable

uint8: 1

 

bUseRefPoseOnInitAnim

On InitAnim should we set to ref pose (if false use first tick of animation data)

Public variable

uint16

 

CachedAnimCurveUidVersion

Cache AnimCurveUidVersion from Skeleton and this will be used to identify if it needs to be updated

Public variable

float

 

ClothBlendWeight

Weight to blend between simulated results and key-framed positions if weight is 1.0, shows only cloth simulation results and 0.0 will show only skinned results

Public variable

TSubclassOf< cl...

 

ClothingSimulationFactory

Class of the object responsible for

Public variable

float

 

ClothMaxDistanceScale

Public variable

EClothingTelepo...

 

ClothTeleportMode

Whether we need to teleport cloth.

Public variable

FSkeletalMeshCo...

 

ClothTickFunction

Public variable

TArray< struct ...

 

Constraints

Array of FConstraintInstance structs, storing per-instance state about each constraint.

Protected variable

TMap< int32, FC...

 

CurrentSimulationData_GameThread

Simulation data written back to the component after the simulation has taken place This should only ever be written to during the clothing completion task.

Public variable

TArray< FBoneIn...

 

FillComponentSpaceTransformsRequiredBones

Temporary array of bone indices required to populate component space transforms

Public variable

float

 

GlobalAnimRateScale

Used to scale speed of all animations on this skeletal mesh.

Public variable

TEnumAsByte< EK...

 

KinematicBonesUpdateType

If we are running physics, should we update non-simulated bones based on the animation bone positions.

Public variable

FVector

 

LineCheckBoundsScale

If bEnableLineCheckWithBounds is true, scale the bounds by this value before doing line check.

Public variable

FOnAnimInitiali...

 

OnAnimInitialized

Broadcast when the components anim instance is initialized.

Public variable

FOnBoneTransfor...

 

OnBoneTransformsFinalized

Public variable

FConstraintBrok...

 

OnConstraintBroken

Notification when constraint is broken.

Public variable

FOnSkeletalMesh...

 

OnSkeletalMeshPropertyChanged

Public variable

TArray< FPendin...

 

PendingRadialForces

Array of physical interactions for the frame.

Public variable

TEnumAsByte< EP...

 

PhysicsTransformUpdateMode

Whether physics simulation updates component transform.

Public variable

UAnimInstance &...

 

PostProcessAnimInstance

An instance created from the PostPhysicsBlueprint property of the skeletal mesh we're using, Runs after physics has been blended

Public variable

int32

 

RagdollAggregateThreshold

Threshold for physics asset bodies above which we use an aggregate for broadphase collisions

Public variable

TArray< FBoneIn...

 

RequiredBones

Temporary array of bone indices required this frame. Filled in by UpdateSkelPose.

Public variable

USkeletalMeshCo...

 

RootBodyData

Index of the 'Root Body', or top body in the asset hierarchy.

Public variable

FVector

 

RootBoneTranslation

Offset of the root bone from the reference pose. Used to offset bounding box.

Public variable

FTransform

 

TransformToRoot

Constructors

Name Description

Public function

USkeletalMeshComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AccumulateAllBodiesBelowPhysicsBlendWeight

(
    const FName& InBoneName,
    float AddPhysicsBlendWeight,
    bool bSkipCustomPhysicsType
)

Accumulate AddPhysicsBlendWeight to physics blendweight for all of the bones below passed in bone to be simulated

Public function

void

 

AddClothCollisionSource

(
    USkeletalMeshComponent* InSour...,
    UPhysicsAsset* InSourcePhysics...
)

Add a collision source for the cloth on this component.

Public function Const

void

 

AddClothingBounds

(
    FBoxSphereBounds& InOutBounds,
    const FTransform& LocalToWorld
)

Given bounds InOutBounds, expand them to also enclose the clothing simulation mesh

Public function Virtual

void

 

AddForceToAllBodiesBelow

(
    FVector Force,
    FName BoneName,
    bool bAccelChange,
    bool bIncludeSelf
)

Add a force to all rigid bodies below.

Public function Virtual

void

 

AddImpulseToAllBodiesBelow

(
    FVector Impulse,
    FName BoneName,
    bool bVelChange,
    bool bIncludeSelf
)

Add impulse to all single rigid bodies below. Good for one time instant burst.

Public function

void

 

AllowAnimCurveEvaluation

(
    FName NameOfCurve,
    bool bAllow
)

Public function

void

 

ApplyAnimationCurvesToComponent

(
    const TMap< FName, float >* In...,
    const TMap< FName, float >* In...
)

Apply animation curves to this component

Public function

void

 

ApplyDeltaToAllPhysicsTransforms

(
    const FVector& DeltaLocation,
    const FQuat& DeltaRotation
)

Set physics transforms for all bodies

Public function

void

 

BindClothToMasterPoseComponent()

If this component has a valid MasterPoseComponent then this function makes cloth items on the slave component take the transforms of the cloth items on the master component instead of simulating separately.

Public function

void

 

BlendInPhysics

(
    FTickFunction& ThisTickFunction
)

Take the results of the physics and blend them with the animation state (based on the PhysicsWeight parameter), and update the SpaceBases array.

Public function

void

 

BlendPhysicsBones

(
    TArray< FBoneIndexType >& Bones
)

Blend of Physics Bones with PhysicsWeight and Animated Bones with (1-PhysicsWeight)

Public function

void

 

BreakConstraint

(
    FVector Impulse,
    FVector HitLocation,
    FName InBoneName
)

Break a constraint off a Gore mesh.

Public function Const

bool

 

CanSimulateClothing()

Returns whether we're able to run a simulation (ignoring the suspend flag)

Public function Virtual

void

 

CheckClothTeleport()

Check linear and angular thresholds for clothing teleport

Public function Virtual

void

 

ClearAnimNotifyErrors

(
    UObject* InSourceNotify
)

Clears currently stored errors. Call before triggering anim notifies for a particular mesh.

Public function

void

 

ClearAnimScriptInstance()

Public function

void

 

ClearCachedAnimProperties()

Clear cached animation data generated for URO during evaluation

Public function

void

 

ClearMorphTargets()

Clear all Morph Target that are set to this mesh

Public function Virtual

void

 

CompleteParallelAnimationEvaluation

(
    bool bDoPostAnimEvaluation
)

Parallel evaluation wrappers.

Public function

void

 

CompleteParallelClothSimulation()

Callback when the parallel clothing task finishes, copies needed data back to component for gamethread

Public function Const

void

 

ComputeRequiredBones

(
    TArray< FBoneIndexType >& OutRequi...,
    TArray< FBoneIndexType >& OutFillC...,
    int32 LODIndex,
    bool bIgnorePhysicsAsset
)

Computes the required bones in this SkeletalMeshComponent based on current SkeletalMesh, LOD and PhysicsAsset

Public function Static

void

 

ComputeSkinnedPositions

(
    USkeletalMeshComponent* Compon...,
    TArray< FVector >& OutPositions,
    TArray< FMatrix >& CachedRefToLoca...,
    const FSkeletalMeshLODRenderData& ...,
    FSkinWeightVertexBuffer& SkinWeigh...
)

Public function Static

void

 

ComputeSkinnedTangentBasis

(
    USkeletalMeshComponent* Compon...,
    TArray< FVector >& OutTangenXZ,
    TArray< FMatrix >& CachedRefToLoca...,
    const FSkeletalMeshLODRenderData& ...,
    FSkinWeightVertexBuffer& SkinWeigh...
)

Public function

void

 

ConditionallyDispatchQueuedAnimEvents()

Public function

FRootMotionM...

 

ConsumeRootMotion()

Consume and return pending root motion from our internal anim instances (main, sub and post)

Protected function

FRootMotionM...

 

ConsumeRootMotion_Internal

(
    float InAlpha
)

Consume and return pending root motion from our internal anim instances (main, sub and post)

Public function

FTransform

 

ConvertLocalRootMotionToWorld

(
    const FTransform& InTransform
)

Take extracted RootMotion and convert it from local space to world space.

Protected function

void

 

CopyChildrenClothCollisionsToParent()

Copy children's cloth collisions to parent, where parent means this component

Protected function

void

 

CopyClothCollisionSources()

Copy cloth collision sources to this, where parent means components above it in the hierarchy

Protected function

void

 

CopyClothCollisionsToChildren()

Copy parent's cloth collisions to attached children, where parent means this component

Public function

void

 

CreateBodySetup()

Public function

void

 

DebugDrawClothing

(
    FPrimitiveDrawInterface* PDI
)

Draw the currently clothing state, using the editor extender interface

Public function Const

void

 

EvaluatePostProcessMeshInstance

(
    TArray< FTransform >& OutBoneSpace...,
    FCompactPose& InOutPose,
    FBlendedHeapCurve& OutCurve,
    const USkeletalMesh* InSkeleta...,
    FVector& OutRootBoneTranslation
)

Evaluates the post process instance from the skeletal mesh this component is using.

Protected function Static

void

 

ExtractCollisionsForCloth

(
    USkeletalMeshComponent* Source...,
    UPhysicsAsset* PhysicsAsset,
    USkeletalMeshComponent* DestCl...,
    FClothCollisionData& OutCollisions,
    FClothCollisionSource& ClothCollis...
)

Extract collisions for cloth from this component (given a component we want to apply the data to)

Protected function

void

 

FindClothCollisions

(
    FClothCollisionData& OutCollisions
)

Find if this component has collisions for clothing and return the results calculated by bone transforms

Public function

FName

 

FindConstraintBoneName

(
    int32 ConstraintIndex
)

Find Constraint Name from index

Public function

int32

 

FindConstraintIndex

(
    FName ConstraintName
)

Find Constraint Index from the name

Public function

FConstraintI...

 

FindConstraintInstance

(
    FName ConName
)

Find instance of the constraint that matches the name supplied.

Public function Const

int32

 

FindRootBodyIndex()

Find the root body index

Public function

void

 

ForceClothNextUpdateTeleport()

Used to indicate we should force 'teleport' during the next call to UpdateClothState, This will transform positions and velocities and thus keep the simulation state, just translate it to a new pose.

Public function

void

 

ForceClothNextUpdateTeleportAndReset()

Used to indicate we should force 'teleport and reset' during the next call to UpdateClothState.

Public function

void

 

ForEachAnimInstance

(
    TFunctionRef< void&#...
)

Calls a function on each of the anim instances that this mesh component hosts, including linked and post-process instances

Public function

int32

 

ForEachBodyBelow

(
    FName BoneName,
    bool bIncludeSelf,
    bool bSkipCustomType,
    TFunctionRef< void&#...
)

Iterates over all bodies below and executes Func. Returns number of bodies found

Public function Const

bool

 

GetAllowedAnimCurveEvaluate()

Public function Const

bool

 

GetAllowRigidBodyAnimNode()

Public function Const

const FBlend...

 

GetAnimationCurves()

Access Curve Array for reading

Public function Const

EAnimationMo...

 

GetAnimationMode()

Public function

UClass *

 

GetAnimClass()

Get the anim instance class via getter callable by sequencer.

Public function Const

UAnimInstanc...

 

GetAnimInstance()

Returns the animation instance that is driving the class (if available).

Public function Const

float

 

GetBoneMass

(
    FName BoneName,
    bool bScaleMass
)

Returns the mass (in kg) of the given bone

Public function

TArray< FTra...

 

GetBoneSpaceTransforms()

This is explicit copy because this buffer is reused during evaluation we want to have reference and emptied during evaluation

Public function Const

const TArray...

 

GetCachedComponentSpaceTransforms()

Access cached component space transforms

Public function Const

FVector

 

GetClosestCollidingRigidBodyLocation

(
    const FVector& TestLocation
)

Iterates through all bodies in our PhysicsAsset and returns the location of the closest bone associated with a body that has collision enabled.

Public function Const

bool

 

GetClosestPointOnPhysicsAsset

(
    const FVector& WorldPosition,
    FClosestPointOnPhysicsAsset& Close...,
    bool bApproximate
)

Given a world position, find the closest point on the physics asset.

Public function Const

const ICloth...

 

GetClothingSimulation()

Get the current clothing simulation (read only)

Public function Const

UClothingSim...

 

GetClothingSimulationInteractor()

Get the current interactor for a clothing simulation, if the current simulation supports runtime interaction.

Public function Const

float

 

GetClothMaxDistanceScale()

Get/Set the max distance scale of clothing mesh vertices

Public function Const

bool

 

GetClothSimulatedPosition_GameThread

(
    const FGuid& AssetGuid,
    int32 VertexIndex,
    FVector& OutSimulPos
)

If the vertex index is valid for simulated vertices, returns the position in world space

Public function Const

const TMap< ...

 

GetCurrentClothingData_GameThread()

Get the current simulation data map for the clothing on this component.

Public function

void

 

GetCurrentJointAngles

(
    FName InBoneName,
    float& Swing1Angle,
    float& TwistAngle,
    float& Swing2Angle
)

Gets the current Angular state for a named bone constraint

Public function Const

void

 

GetCurrentRefToLocalMatrices

(
    TArray< FMatrix >& OutRefToLocals,
    int32 InLodIdx
)

Public function Const

bool

 

GetDisablePostProcessBlueprint()

Gets whether the post process blueprint is currently disabled for this component

Public function Const

const TArray...

 

GetDisallowedAnimCurvesEvaluation()

Public function Const

const FBlend...

 

GetEditableAnimationCurves()

Public function

FBlendedHeap...

 

GetEditableAnimationCurves()

Get Access to the current editable Curve Array - uses same buffer as space bases

Public function Const

UAnimInstanc...

 

GetLinkedAnimGraphInstanceByTag

(
    FName InTag
)

Returns the a tagged linked instance node.

Public function Const

void

 

GetLinkedAnimGraphInstancesByTag

(
    FName InTag,
    TArray< UAnimInstance* >& Out...
)

Returns all tagged linked instance nodes that match the tag.

Public function Const

const TArray...

 

GetLinkedAnimInstances()

Get the anim instances linked to the main AnimScriptInstance

Public function Const

UAnimInstanc...

 

GetLinkedAnimLayerInstanceByClass

(
    TSubclassOf< UAnimInstance > InClas...
)

Gets the first layer linked instance corresponding to the specified class

Public function Const

UAnimInstanc...

 

GetLinkedAnimLayerInstanceByGroup

(
    FName InGroup
)

Gets the layer linked instance corresponding to the specified group

Public function Const

float

 

GetMorphTarget

(
    FName MorphTargetName
)

Get Morph target with given name

Public function Const

const TMap< ...

 

GetMorphTargetCurves()

Public function Const

const TArray...

 

GetPendingRadialForces()

Public function Const

float

 

GetPlayRate()

Animation play functions

Public function Const

float

 

GetPosition()

Animation play functions

Public function Const

UAnimInstanc...

 

GetPostProcessInstance()

Returns the active post process instance is one is available.

Public function Const

UAnimSingleN...

 

GetSingleNodeInstance()

Public function Const

FVector

 

GetSkeletalCenterOfMass()

Returns the center of mass of the skeletal mesh, instead of the root body's location

Public function Static

void

 

GetSkinnedTangentBasis

(
    USkeletalMeshComponent* Compon...,
    int32 VertexIndex,
    const FSkeletalMeshLODRenderData& ...,
    FSkinWeightVertexBuffer& SkinWeigh...,
    TArray< FMatrix >& CachedRefToLoca...,
    FVector& OutTangentX,
    FVector& OutTangentZ
)

Public function Static

FVector

 

GetSkinnedVertexPosition

(
    USkeletalMeshComponent* Compon...,
    int32 VertexIndex,
    const FSkeletalMeshLODRenderData& ...,
    FSkinWeightVertexBuffer& SkinWeigh...,
    TArray< FMatrix >& CachedRefToLoca...
)

Public function Static

FVector

 

GetSkinnedVertexPosition

(
    USkeletalMeshComponent* Compon...,
    int32 VertexIndex,
    const FSkeletalMeshLODRenderData& ...,
    FSkinWeightVertexBuffer& SkinWeigh...
)

Public function Const

float

 

GetTeleportDistanceThreshold()

Gets the teleportation distance threshold.

Public function Const

float

 

GetTeleportRotationThreshold()

Gets the teleportation rotation threshold.

Public function

float

 

GetTotalMassBelowBone

(
    FName InBoneName
)

Utility which returns total mass of all bones below the supplied one in the hierarchy (including this one).

Public function Const

bool

 

GetUpdateAnimationInEditor()

Return true if currently updating in editor is true this is non BP because this is only used for slave component to detect master component ticking state

Public function

void

 

GetUpdateClothSimulationData

(
    TMap< int32, FClothSimulData >& Ou...,
    USkeletalMeshComponent* Overri...
)

Store cloth simulation data into OutClothSimData

Public function

bool

 

HandleExistingParallelEvaluationTask

(
    bool bBlockOnTask,
    bool bPerformPostAnimEvaluation
)

Management function for if we want to do an evaluation but may already be running one bBlockOnTask - if true and we are currently performing parallel eval we wait for it to finish bPerformPostAnimEvaluation - if true and we are currently performing parallel eval we call PostAnimEvaluation too return true if parallel task was running.

Public function Const

bool

 

HasValidAnimationInstance()

Returns whether there are any valid instances to run, currently this means whether we have have an animation instance or a post process instance available to process.

Public function Virtual

void

 

InitAnim

(
    bool bForceReinit
)

Animation

Public function

void

 

InitArticulated

(
    FPhysScene* PhysScene
)

Initialize PhysicsAssetInstance for the physicsAsset

Public function

bool

 

InitializeAnimScriptInstance

(
    bool bForceReinit,
    bool bInDeferRootNodeInitialization
)

Public function

void

 

InitSkelControls()

Initialize SkelControls

Public function Const

void

 

InstantiatePhysicsAsset

(
    const UPhysicsAsset& PhysAsset,
    const FVector& Scale3D,
    TArray< FBodyInstance* >& Out...,
    TArray< FConstraintInstance* >...,
    FPhysScene* PhysScene,
    USkeletalMeshComponent* Owning...,
    int32 UseRootBodyIndex,
    const FPhysicsAggregateHandle& Use...
)

Instantiates bodies given a physics asset.

Public function Const

void

 

InstantiatePhysicsAssetRefPose

(
    const UPhysicsAsset& PhysAsset,
    const FVector& Scale3D,
    TArray< FBodyInstance* >& Out...,
    TArray< FConstraintInstance* >...,
    FPhysScene* PhysScene,
    USkeletalMeshComponent* Owning...,
    int32 UseRootBodyIndex,
    const FPhysicsAggregateHandle& Use...,
    bool bCreateBodiesInRefPose
)

Instantiates bodies given a physics asset like InstantiatePhysicsAsset but instead of reading the current component state, this reads the ref-pose from the reference skeleton of the mesh.

Public function Const

bool

 

IsAnimBlueprintInstanced()

Public function

bool

 

IsBodyGravityEnabled

(
    FName BoneName
)

Checks whether or not gravity is enabled on the given bone.

Public function Const

bool

 

IsClothBoundToMasterComponent()

Public function Const

bool

 

IsClothingSimulationSuspended()

Gets whether or not the clothing simulation is currently suspended

Public function Const

bool

 

IsPlaying()

Animation play functions

Public function Const

bool

 

IsPostEvaluatingAnimation()

Are we currently within PostAnimEvaluation.

Public function Const

bool

 

IsRunningParallelEvaluation()

Returns whether we are currently trying to run a parallel animation evaluation task.

Public function Virtual Const

bool

 

IsWindEnabled()

Public function Const

bool

 

K2_GetClosestPointOnPhysicsAsset

(
    const FVector& WorldPosition,
    FVector& ClosestWorldPosition,
    FVector& Normal,
    FName& BoneName,
    float& Distance
)

Given a world position, find the closest point on the physics asset.

Public function

void

 

LinkAnimClassLayers

(
    TSubclassOf< UAnimInstance > InClas...
)

Runs through all layer nodes, attempting to find layer nodes that are implemented by the specified class, then sets up a linked instance of the class for each.

Public function

void

 

LinkAnimGraphByTag

(
    FName InTag,
    TSubclassOf< UAnimInstance > InClas...
)

Runs through all nodes, attempting to find linked instance by name/tag, then sets the class of each node if the tag matches

Protected function Const

bool

 

NeedToSpawnAnimScriptInstance()

Protected function Const

bool

 

NeedToSpawnPostPhysicsInstance

(
    bool bForceReinit
)

Public function Virtual

void

 

NotifySkelControlBeyondLimit

(
    USkelControlLookAt* LookAt
)

Notifier when look at control goes beyond of limit - candidate for delegate

Public function

void

 

OverrideAnimationData

(
    UAnimationAsset* InAnimToPlay,
    bool bIsLooping,
    bool bIsPlaying,
    float Position,
    float PlayRate
)

This overrides current AnimationData parameter in the SkeletalMeshComponent.

Public function

void

 

ParallelAnimationEvaluation()

Parallel evaluation wrappers.

Public function

void

 

PerformAnimationEvaluation

(
    const USkeletalMesh* InSkeleta...,
    UAnimInstance* InAnimInstance,
    TArray< FTransform >& OutSpaceBase...,
    TArray< FTransform >& OutBoneSpace...,
    FVector& OutRootBoneTranslation,
    FBlendedHeapCurve& OutCurve
)

Runs the animation evaluation for the current pose into the supplied variables PerformAnimationProcessing runs evaluation based on bInDoEvaluation.

Public function

void

 

PerformAnimationProcessing

(
    const USkeletalMesh* InSkeleta...,
    UAnimInstance* InAnimInstance,
    bool bInDoEvaluation,
    TArray< FTransform >& OutSpaceBase...,
    TArray< FTransform >& OutBoneSpace...,
    FVector& OutRootBoneTranslation,
    FBlendedHeapCurve& OutCurve
)

Public function

void

 

Play

(
    bool bLooping
)

Animation play functions

Public function

void

 

PlayAnimation

(
    UAnimationAsset* NewAnimToPlay,
    bool bLooping
)

Animation play functions

Public function Const

bool

 

PoseTickedThisFrame()

Checked whether we have already ticked the pose this frame

Public function

void

 

PostAnimEvaluation

(
    FAnimationEvaluationContext& Evalu...
)

Protected function

void

 

ProcessClothCollisionWithEnvironment()

Public function

void

 

RecalcRequiredBones

(
    int32 LODIndex
)

Recalculates the RequiredBones array in this SkeletalMeshComponent based on current SkeletalMesh, LOD and PhysicsAsset.

Public function

void

 

RecalcRequiredCurves()

Recalculates the AnimCurveUids array in RequiredBone of this SkeletalMeshComponent based on current required bone set Is called when Skeleton->IsRequiredCurvesUpToDate() = false

Public function

void

 

RecreateClothingActors()

Destroys and recreates the clothing actors in the current simulation

Public function

void

 

RegisterClothTick

(
    bool bRegister
)

Handle registering our pre cloth tick function.

Public function

void

 

RegisterEndPhysicsTick

(
    bool bRegister
)

Handle registering our end physics tick function.

Public function

FDelegateHan...

 

RegisterOnPhysicsCreatedDelegate

(
    const FOnSkelMeshPhysicsCreated& D...
)

Register/Unregister for physics state creation callback

Public function

FDelegateHan...

 

RegisterOnSkeletalMeshPropertyChanged

(
    const FOnSkeletalMeshPropertyChange...
)

Register / Unregister delegates called when the skeletal mesh property is changed

Public function

FDelegateHan...

 

RegisterOnTeleportDelegate

(
    const FOnSkelMeshTeleported& Deleg...
)

Register/Unregister for teleport callback

Public function

void

 

ReleaseAllClothingResources()

Remove all clothing actors from their simulation and clear any other necessary clothing data to leave the simulations in a clean state

Public function

void

 

RemoveAllClothingActors()

Remove clothing actors from their simulation

Public function

void

 

RemoveClothCollisionSource

(
    USkeletalMeshComponent* InSour...
)

Remove a cloth collision source defined by a component

Public function

void

 

RemoveClothCollisionSource

(
    USkeletalMeshComponent* InSour...,
    UPhysicsAsset* InSourcePhysics...
)

Remove a cloth collision source defined by both a component and a physics asset

Public function Virtual

void

 

ReportAnimNotifyError

(
    const FText& Error,
    UObject* InSourceNotify
)

Subclasses such as DebugSkelMeshComponent keep track of errors in the anim notifies so they can be displayed to the user.

Public function

void

 

ResetAllBodiesSimulatePhysics()

Allows you to reset bodies Simulate state based on where bUsePhysics is set to true in the BodySetup.

Public function

void

 

ResetAllowedAnimCurveEvaluation()

By reset, it will allow all the curves to be evaluated

Public function

void

 

ResetAnimInstanceDynamics

(
    ETeleportType InTeleportType
)

Informs any active anim instances (main instance, linked instances, post instance) that a dynamics reset is required for example if a teleport occurs.

Public function

void

 

ResetClothTeleportMode()

Reset the teleport mode of a next update to 'Continuous'

Public function

void

 

ResetRootBodyIndex()

Reset Root Body Index

Public function

void

 

ResumeClothingSimulation()

Resumes a previously suspended clothing simulation, teleporting the clothing on the next tick

Public function

void

 

SetAllBodiesBelowPhysicsBlendWeight

(
    const FName& InBoneName,
    float PhysicsBlendWeight,
    bool bSkipCustomPhysicsType,
    bool bIncludeSelf
)

Set all of the bones below passed in bone to be simulated

Public function

void

 

SetAllBodiesBelowSimulatePhysics

(
    const FName& InBoneName,
    bool bNewSimulate,
    bool bIncludeSelf
)

Set all of the bones below passed in bone to be simulated

Public function

void

 

SetAllBodiesCollisionObjectType

(
    ECollisionChannel NewChannel
)

Set the movement channel of all bodies

Public function

void

 

SetAllBodiesNotifyRigidBodyCollision

(
    bool bNewNotifyRigidBodyCollision
)

Set the rigid body notification state for all bodies.

Public function

void

 

SetAllBodiesPhysicsBlendWeight

(
    float PhysicsBlendWeight,
    bool bSkipCustomPhysicsType
)

Public function

void

 

SetAllBodiesSimulatePhysics

(
    bool bNewSimulate
)

Set bSimulatePhysics to true for all bone bodies.

Public function

void

 

SetAllMotorsAngularDriveParams

(
    float InSpring,
    float InDamping,
    float InForceLimit,
    bool bSkipCustomPhysicsType
)

Set Angular Drive motors params for all constraint instances

Public function

void

 

SetAllMotorsAngularPositionDrive

(
    bool bEnableSwingDrive,
    bool bEnableTwistDrive,
    bool bSkipCustomPhysicsType
)

Enable or Disable AngularPositionDrive.

Public function

void

 

SetAllMotorsAngularVelocityDrive

(
    bool bEnableSwingDrive,
    bool bEnableTwistDrive,
    bool bSkipCustomPhysicsType
)

Enable or Disable AngularVelocityDrive.

Public function

void

 

SetAllowAnimCurveEvaluation

(
    bool bInAllow
)

Public function

void

 

SetAllowedAnimCurvesEvaluation

(
    const TArray< FName >& List,
    bool bAllow
)

Resets, and then only allow the following list to be allowed/disallowed

Public function

void

 

SetAllowRigidBodyAnimNode

(
    bool bInAllow,
    bool bReinitAnim
)

Sets whether or not to allow rigid body animation nodes for this component

Public function Virtual

void

 

SetAllPhysicsAngularVelocityInRadians

(
    FVector const& NewVel,
    bool bAddToCurrent
)

Public function

void

 

SetAngularLimits

(
    FName InBoneName,
    float Swing1LimitAngle,
    float TwistLimitAngle,
    float Swing2LimitAngle
)

Sets the Angular Motion Ranges for a named bone

Public function

void

 

SetAnimation

(
    UAnimationAsset* NewAnimToPlay
)

Animation play functions

Public function

void

 

SetAnimationMode

(
    EAnimationMode::Type InAnimationMod...
)

Below are the interface to control animation when animation mode, not blueprint mode

Public function Virtual

void

 

SetAnimClass

(
    UClass* NewClass
)

Set the anim instance class.

Public function

void

 

SetAnimInstanceClass

(
    UClass* NewClass
)

Set the anim instance class.

Public function Virtual

void

 

SetBodyNotifyRigidBodyCollision

(
    bool bNewNotifyRigidBodyCollision,
    FName BoneName
)

Changes the value of bNotifyRigidBodyCollision for a given body

Public function

void

 

SetClothMaxDistanceScale

(
    float Scale
)

Public function

void

 

SetConstraintProfile

(
    FName JointName,
    FName ProfileName,
    bool bDefaultIfNotFound
)

Sets the constraint profile properties (limits, motors, etc...) to match the constraint profile as defined in the physics asset.

Public function

void

 

SetConstraintProfileForAll

(
    FName ProfileName,
    bool bDefaultIfNotFound
)

Sets the constraint profile properties (limits, motors, etc...) to match the constraint profile as defined in the physics asset for all constraints.

Public function

void

 

SetDisablePostProcessBlueprint

(
    bool bInDisablePostProcess
)

Sets whether the post process blueprint is currently running for this component.

Public function

void

 

SetEnableBodyGravity

(
    bool bEnableGravity,
    FName BoneName
)

Enables or disables gravity for the given bone.

Public function

void

 

SetEnableGravityOnAllBodiesBelow

(
    bool bEnableGravity,
    FName BoneName,
    bool bIncludeSelf
)

Enables or disables gravity to all bodies below the given bone.

Public function

void

 

SetEnablePhysicsBlending

(
    bool bNewBlendPhysics
)

Disable physics blending of bones

Public function

void

 

SetForceRefPose

(
    bool bNewForceRefPose
)

Change whether to force mesh into ref pose (and use cheaper vertex shader)

Public function

void

 

SetMorphTarget

(
    FName MorphTargetName,
    float Value,
    bool bRemoveZeroWeight
)

Set Morph Target with Name and Value(0-1)

Public function

void

 

SetNamedMotorsAngularPositionDrive

(
    bool bEnableSwingDrive,
    bool bEnableTwistDrive,
    const TArray< FName >& BoneNames,
    bool bSetOtherBodiesToComplement
)

Enable or Disable AngularPositionDrive based on a list of bone names

Public function

void

 

SetNamedMotorsAngularVelocityDrive

(
    bool bEnableSwingDrive,
    bool bEnableTwistDrive,
    const TArray< FName >& BoneNames,
    bool bSetOtherBodiesToComplement
)

Enable or Disable AngularVelocityDrive based on a list of bone names

Public function Virtual

void

 

SetNotifyRigidBodyCollisionBelow

(
    bool bNewNotifyRigidBodyCollision,
    FName BoneName,
    bool bIncludeSelf
)

Changes the value of bNotifyRigidBodyCollision on all bodies below a given bone

Public function

void

 

SetPhysicsBlendWeight

(
    float PhysicsBlendWeight
)

This is global set up for setting physics blend weight This does multiple things automatically If PhysicsBlendWeight == 1.f, it will enable Simulation, and if PhysicsBlendWeight == 0.f, it will disable Simulation.

Public function

void

 

SetPlayRate

(
    float Rate
)

Animation play functions

Public function

void

 

SetPosition

(
    float InPos,
    bool bFireNotifies
)

Animation play functions

Public function

void

 

SetRootBodyIndex

(
    int32 InBodyIndex
)

Set Root Body Index

Public function

void

 

SetSkeletalMeshWithoutResettingAnimation

(
    USkeletalMesh* NewMesh
)

Public function

void

 

SetTeleportDistanceThreshold

(
    float Threshold
)

Sets the teleportation distance threshold.

Public function

void

 

SetTeleportRotationThreshold

(
    float Threshold
)

Sets the teleportation rotation threshold.

Public function

void

 

SetUpdateAnimationInEditor

(
    const bool NewUpdateState
)

Sets whether or not to force tick component in order to update animation and refresh transform for this component This is supported only in the editor

Protected function Const

bool

 

ShouldBlendPhysicsBones()

Public function Const

bool

 

ShouldEvaluatePostProcessInstance()

Public function Const

bool

 

ShouldOnlyTickMontages

(
    const float DeltaTime
)

If VisibilityBasedAnimTickOption == EVisibilityBasedAnimTickOption::OnlyTickMontagesWhenNotRendered Should we tick Montages only?

Public function Const

bool

 

ShouldPostUpdatePostProcessInstance()

Protected function Virtual Const

bool

 

ShouldRunClothTick()

Returns whether we need to run the Cloth Tick or not.

Public function Const

bool

 

ShouldTickAnimation()

Public function Const

bool

 

ShouldUpdatePostProcessInstance()

Conditions used to gate when post process events happen.

Public function Virtual

void

 

SkelMeshCompOnParticleSystemFinished

(
    UParticleSystemComponent* PSC
)

We detach the Component once we are done playing it.

Public function

void

 

SnapshotPose

(
    FPoseSnapshot& Snapshot
)

Takes a snapshot of this skeletal mesh component's pose and saves it to the specified snapshot.

Public function

void

 

Stop()

Animation play functions

Public function

void

 

SuspendClothingSimulation()

Stops simulating clothing, but does not show clothing ref pose.

Public function

void

 

TermArticulated()

Turn off all physics and remove the instance.

Public function

void

 

TermBodiesBelow

(
    FName ParentBoneName
)

Terminate physics on all bodies below the named bone, effectively disabling collision forever.

Public function

void

 

TickAnimation

(
    float DeltaTime,
    bool bNeedsValidRootMotion
)

Tick Animation system

Public function

void

 

TickClothing

(
    float DeltaTime,
    FTickFunction& ThisTickFunction
)

Tick Clothing Animation , basically this is called inside TickComponent

Public function

void

 

ToggleDisablePostProcessBlueprint()

Toggles whether the post process blueprint will run for this component

Public function

void

 

UnbindClothFromMasterPoseComponent

(
    bool bRestoreSimulationSpace
)

If this component has a valid MasterPoseComponent and has previously had its cloth bound to the MCP, this function will unbind the cloth and resume simulation.

Public function

void

 

UnlinkAnimClassLayers

(
    TSubclassOf< UAnimInstance > InClas...
)

Runs through all layer nodes, attempting to find layer nodes that are currently running the specified class, then resets each to its default value.

Public function

void

 

UnregisterOnPhysicsCreatedDelegate

(
    const FDelegateHandle& DelegateHan...
)

Public function

void

 

UnregisterOnSkeletalMeshPropertyChanged

(
    FDelegateHandle Handle
)

Public function

void

 

UnregisterOnTeleportDelegate

(
    const FDelegateHandle& DelegateHan...
)

Public function

void

 

UpdateBoneBodyMapping()

Update the bone mapping on each body instance.

Public function

void

 

UpdateClothCollision()

Updates cloth collision inside the cloth asset (from a physics asset).

Public function

void

 

UpdateClothStateAndSimulate

(
    float DeltaTime,
    FTickFunction& ThisTickFunction
)

Update the clothing simulation state and trigger the simulation task

Public function

void

 

UpdateClothTransform

(
    ETeleportType TeleportType
)

Updates cloth collision outside the cloth asset (environment collision, child collision, etc...) Should be called when scene changes or world position changes

Public function

void

 

UpdateHasValidBodies()

Update bHasValidBodies flag

Public function

void

 

UpdateKinematicBonesToAnim

(
    const TArray< FTransform >& InComp...,
    ETeleportType Teleport,
    bool bNeedsSkinning,
    EAllowKinematicDeferral DeferralAll...
)

Iterate over each physics body in the physics for this mesh, and for each 'kinematic' (ie fixed or default if owner isn't simulating) one, update its transform based on the animated transform.

Public function

void

 

UpdateMeshForBrokenConstraints()

Look up all bodies for broken constraints.

Public function

void

 

UpdateRBJointMotors()

Iterate over each joint in the physics for this mesh, setting its AngularPositionTarget based on the animation information.

Public function

void

 

ValidateAnimation()

Validates the animation asset or blueprint, making sure it is compatible with the current skeleton

Overridden from USkinnedMeshComponent

Name Description

Public function Virtual

bool

 

AllocateTransformData()

Allocate Transform Data array including SpaceBases, BoneVisibilityStates

Public function Virtual

void

 

ClearRefPoseOverride()

Clear any applied ref pose override

Public function Virtual

void

 

DeallocateTransformData()

Protected function Virtual

void

 

DispatchParallelTickPose

(
    FActorComponentTickFunction* T...
)

Parallel Tick Pose In the case where we do not want to refresh bone transforms (and would therefore not normally kick off a parallel eval task) we perform this 'mini tick' that kicks off the task.

Public function Virtual

void

 

FinalizeBoneTransform()

Finalize bone transform of this current tick After this function, any query to bone transform should be latest of the data

Public function Virtual

void

 

HideBone

(
    int32 BoneIndex,
    EPhysBodyOp PhysBodyOption
)

Hides the specified bone. You can also set option for physics body.

Public function Virtual Const

bool

 

IsPlayingNetworkedRootMotionMontage()

Public function Virtual Const

bool

 

IsPlayingRootMotion()

Public function Virtual Const

bool

 

IsPlayingRootMotionFromEverything()

Public function Virtual

void

 

RefreshBoneTransforms

(
    FActorComponentTickFunction* T...
)

Update functions Refresh Bone Transforms Each class will need to implement this function Ideally this function should be atomic (not relying on Tick or any other update.)

Public function Virtual

void

 

SetPhysicsAsset

(
    UPhysicsAsset* NewPhysicsAsset,
    bool bForceReInit
)

Override the Physics Asset of the mesh.

Public function Virtual

void

 

SetRefPoseOverride

(
    const TArray< FTransform >& NewRef...
)

Apply an override for the current mesh ref pose

Public function Virtual

void

 

SetSkeletalMesh

(
    USkeletalMesh* NewMesh,
    bool bReinitPose
)

Change the SkeletalMesh that is rendered for this Component.

Public function Virtual Const

bool

 

ShouldTickPose()

Should tick pose (by calling TickPose) in Tick

Public function Virtual Const

bool

 

ShouldUpdateTransform

(
    bool bLODHasChanged
)

Should update transform in Tick

Public function Virtual

void

 

TickPose

(
    float DeltaTime,
    bool bNeedsValidRootMotion
)

Tick Pose, this function ticks and do whatever it needs to do in this frame, should be called before RefreshBoneTransforms

Public function Virtual

void

 

UnHideBone

(
    int32 BoneIndex
)

Unhides the specified bone.

Public function Virtual

bool

 

UpdateLODStatus()

Update the PredictedLODLevel and MaxDistanceFactor in the component from its MeshObject.

Public function Virtual

void

 

UpdateSlaveComponent()

Update Slave Component. This gets called when MasterPoseComponent!=NULL

Public function Virtual

void

 

UpdateVisualizeLODString

(
    FString& DebugString
)

Overridden from UPrimitiveComponent

Name Description

Public function Virtual

void

 

AddRadialForce

(
    FVector Origin,
    float Radius,
    float Strength,
    ERadialImpulseFalloff Falloff,
    bool bAccelChange
)

Add a force to all bodies in this component, originating from the supplied world-space location.

Public function Virtual

void

 

AddRadialImpulse

(
    FVector Origin,
    float Radius,
    float Strength,
    ERadialImpulseFalloff Falloff,
    bool bVelChange
)

Add an impulse to all rigid bodies in this component, radiating out from the specified position.

Public function Virtual

float

 

CalculateMass

(
    FName BoneName
)

Returns the calculated mass in kg.

Public function Virtual

bool

 

CanEditSimulatePhysics()

Determines whether or not the simulate physics setting can be edited interactively on this component

Public function Virtual Const

bool

 

ComponentIsTouchingSelectionBox

(
    const FBox& InSelBBox,
    const FEngineShowFlags& ShowFlags,
    const bool bConsiderOnlyBSP,
    const bool bMustEncompassEntireComp...
)

Determines whether the supplied bounding box intersects with the component.

Public function Virtual Const

bool

 

ComponentIsTouchingSelectionFrustum

(
    const FConvexVolume& InFrustum,
    const FEngineShowFlags& ShowFlags,
    const bool bConsiderOnlyBSP,
    const bool bMustEncompassEntireComp...
)

Determines whether the supplied frustum intersects with the component.

Protected function Virtual

bool

 

ComponentOverlapComponentImpl

(
    UPrimitiveComponent* PrimComp,
    const FVector Pos,
    const FQuat& Rot,
    const FCollisionQueryParams& Param...
)

Override this method for custom behavior for ComponentOverlapComponent()

Protected function Virtual Const

bool

 

ComponentOverlapMultiImpl

(
    TArray< struct FOverlapResult >& O...,
    const UWorld* InWorld,
    const FVector& Pos,
    const FQuat& Rot,
    ECollisionChannel TestChannel,
    const FComponentQueryParams& Param...,
    const FCollisionObjectQueryParams&...
)

Test the collision of the supplied component at the supplied location/rotation, and determine the set of components that it overlaps

Public function Virtual Const

bool

 

DoCustomNavigableGeometryExport

(
    FNavigableGeometryExport& GeomExpo...
)

Collects custom navigable geometry of component.

Public function Virtual Const

FBodyInstanc...

 

GetBodyInstance

(
    FName BoneName,
    bool bGetWelded
)

Returns BodyInstance of the component.

Public function Virtual

UBodySetup &...

 

GetBodySetup()

Return the BodySetup to use for this PrimitiveComponent (single body case)

Protected function Virtual

FTransform

 

GetComponentTransformFromBodyInstance

(
    FBodyInstance* UseBI
)

Called to get the Component To World Transform from the Root BodyInstance This needs to be virtual since SkeletalMeshComponent Root has to undo its own transform Without this, the root LocalToAtom is overridden by physics simulation, causing kinematic velocity to accelerate simulation

Public function Virtual Const

float

 

GetMass()

Returns the mass of this component in kg.

Public function Virtual Const

bool

 

GetSquaredDistanceToCollision

(
    const FVector& Point,
    float& OutSquaredDistance,
    FVector& OutClosestPointOnCollisio...
)

Returns The square of the distance to closest Body Instance surface.

Public function Virtual

void

 

GetWeldedBodies

(
    TArray< FBodyInstance* >& Out...,
    TArray< FName >& OutLabels,
    bool bIncludingAutoWeld
)

Adds the bodies that are currently welded to the OutWeldedBodies array

Public function Virtual

bool

 

IsAnyRigidBodyAwake()

Returns if any body in this component is currently awake and simulating.

Public function Virtual Const

bool

 

IsGravityEnabled()

Returns whether this component is affected by gravity.

Public function Virtual

bool

 

LineTraceComponent

(
    FHitResult& OutHit,
    const FVector Start,
    const FVector End,
    const FCollisionQueryParams& Param...
)

Trace a ray against just this component.

Public function Virtual

void

 

OnComponentCollisionSettingsChanged

(
    bool bUpdateOverlaps
)

Called when the BodyInstance ResponseToChannels, CollisionEnabled or bNotifyRigidBodyCollision changes, in case subclasses want to use that information.

Public function Virtual

bool

 

OverlapComponent

(
    const FVector& Pos,
    const FQuat& Rot,
    const FCollisionShape& CollisionSh...
)

Test the collision of the supplied shape at the supplied location, and determine if it overlaps this component.

Public function Virtual

void

 

PutAllRigidBodiesToSleep()

Force all bodies in this component to sleep.

Public function Virtual

void

 

SendRenderDebugPhysics

(
    FPrimitiveSceneProxy* Override...
)

Updates the renderer with the center of mass data

Public function Virtual

void

 

SetAllMassScale

(
    float InMassScale
)

Change the mass scale used fo all bodies in this component

Public function Virtual

void

 

SetAllPhysicsLinearVelocity

(
    FVector NewVel,
    bool bAddToCurrent
)

Set the linear velocity of all bodies in this component.

Public function Virtual

void

 

SetAllPhysicsPosition

(
    FVector NewPos
)

Set the position of all bodies in this component.

Public function Virtual

void

 

SetAllPhysicsRotation

(
    FRotator NewRot
)

Set the rotation of all bodies in this component.

Public function Virtual

void

 

SetAllPhysicsRotation

(
    const FQuat& NewRot
)

Set the rotation of all bodies in this component.

Public function Virtual

void

 

SetAllUseCCD

(
    bool InUseCCD
)

Set whether all bodies in this component should use Continuous Collision Detection

Public function Virtual

void

 

SetCollisionObjectType

(
    ECollisionChannel Channel
)

Set the collision object type on the skeletal mesh

Public function Virtual

void

 

SetEnableGravity

(
    bool bGravityEnabled
)

Enables/disables whether this component is affected by gravity.

Public function Virtual

void

 

SetNotifyRigidBodyCollision

(
    bool bNewNotifyRigidBodyCollision
)

Changes the value of bNotifyRigidBodyCollision

Public function Virtual

void

 

SetPhysMaterialOverride

(
    UPhysicalMaterial* NewPhysMate...
)

Changes the current PhysMaterialOverride for this component.

Public function Virtual

void

 

SetSimulatePhysics

(
    bool bSimulate
)

Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic).

Public function Virtual

bool

 

SweepComponent

(
    FHitResult& OutHit,
    const FVector Start,
    const FVector End,
    const FQuat& ShapRotation,
    const FCollisionShape& CollisionSh...,
    bool bTraceComplex
)

Trace a shape against just this component.

Public function Virtual

void

 

UpdateCollisionProfile()

Public function Virtual

void

 

UpdatePhysicsToRBChannels()

Internal function that updates physics objects to match the component collision settings.

Public function Virtual

void

 

WakeAllRigidBodies()

Ensure simulation is running for all bodies in this component.

Overridden from USceneComponent

Name Description

Public function Virtual Const

FBoxSphereBo...

 

CalcBounds

(
    const FTransform& LocalToWorld
)

Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size.

Public function Virtual Const

const bool

 

CanHaveStaticMobility()

Skeletal mesh component should not be able to have its mobility set to static

Public function Virtual Const

bool

 

IsAnySimulatingPhysics()

Returns whether the specified body is currently using physics simulation

Protected function Virtual

bool

 

MoveComponentImpl

(
    const FVector& Delta,
    const FQuat& NewRotation,
    bool bSweep,
    FHitResult* Hit,
    EMoveComponentFlags MoveFlags,
    ETeleportType Teleport
)

Override this method for custom behavior for MoveComponent

Public function Virtual

void

 

OnUpdateTransform

(
    EUpdateTransformFlags UpdateTransfo...,
    ETeleportType Teleport
)

Native callback when this component is moved

Public function Virtual

bool

 

UpdateOverlapsImpl

(
    const TOverlapArrayView* NewPe...,
    bool bDoNotifies,
    const TOverlapArrayView* Overl...
)

Queries world and updates overlap tracking state for this component.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

BeginPlay()

Used to detach physics objects before simulation begins.

Public function Virtual

void

 

InitializeComponent()

Initializes the component.

Protected function Virtual

void

 

OnCreatePhysicsState()

Used to create any physics engine information for this component

Protected function Virtual

void

 

OnDestroyPhysicsState()

Used to shut down and physics engine structure for this component

Protected function Virtual

void

 

OnRegister()

Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.

Protected function Virtual

void

 

OnUnregister()

Called when a component is unregistered.

Protected function Virtual

void

 

RegisterComponentTickFunctions

(
    bool bRegister
)

Virtual call chain to register all tick functions

Protected function Virtual Const

bool

 

ShouldCreatePhysicsState()

Return true if CreatePhysicsState() should be called.

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction* T...
)

Function called every frame on this ActorComponent.

Overridden from UObject

Name Description

Public function Virtual

void

 

GetResourceSizeEx

(
    FResourceSizeEx& CumulativeResourc...
)

Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific).

Public function Virtual

void

 

LoadedFromAnotherClass

(
    const FName& OldClassName
)

Called when the object was loaded from another class via active class redirects.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Classes

Name

Description

Public struct

FPendingRadialForces

Typedefs

Deprecated Variables

Name Description

Public variable

UAnimBlueprint ...

 

AnimationBlueprint_DEPRECATED

Animation anim: Matinee related data start - this needs to be replaced to new system.

Public variable

UAnimBlueprintG...

 

AnimBlueprintGeneratedClass

This property is deprecated. Please use AnimClass instead

Public variable

float

 

AreaStiffness_DEPRECATED

Public variable

float

 

BendingStiffness_DEPRECATED

Public variable

TArray< FTransf...

 

BoneSpaceTransforms

Direct access to this property is deprecated, please use GetBoneSpaceTransforms instead. We will move to private in the future.

Public variable

uint8: 1

 

bUseBendingElements_DEPRECATED

Public variable

uint8: 1

 

bUseContinuousCollisionDetection_DEPRECATED

Public variable

uint8: 1

 

bUseSelfCollisions_DEPRECATED

Public variable

uint8: 1

 

bUseTetrahedralConstraints_DEPRECATED

Public variable

uint8: 1

 

bUseThinShellVolumeConstraints_DEPRECATED

Public variable

float

 

Density_DEPRECATED

Water: 1.0 Cotton: 0.155 Wool: 0.13 Silk: 0.133

Public variable

float

 

EdgeStiffness_DEPRECATED

Public variable

EClothMassMode

 

MassMode_DEPRECATED

Public variable

float

 

MinPerParticleMass_DEPRECATED

Public variable

float

 

ShapeTargetStiffness_DEPRECATED

Public variable

float

 

StrainLimitingStiffness_DEPRECATED

Public variable

TArray< UAnimIn...

 

SubInstances

Direct access to this property is deprecated and the array is no longer used. Storage is now in LinkedInstances. Please use GetLinkedAnimInstances() instead.

Public variable

float

 

TotalMass_DEPRECATED

Public variable

float

 

UniformMass_DEPRECATED

Public variable

float

 

VolumeStiffness_DEPRECATED

Deprecated Functions

Name Description

Public function

void

 

ClearLayerOverlay

(
    TSubclassOf< UAnimInstance > InClas...
)

Function renamed, please use UnlinkAnimClassLayers

Public function Const

bool

 

GetDisableAnimCurves()

This function is deprecated. Please use GetAllowedAnimCurveEvaluate instead. Note that the meaning is reversed.

Public function Const

UAnimInstanc...

 

GetLayerSubInstanceByClass

(
    TSubclassOf< UAnimInstance > InClas...
)

Function renamed, please use GetLinkedAnimLayerInstanceByClass

Public function Const

UAnimInstanc...

 

GetLayerSubInstanceByGroup

(
    FName InGroup
)

Function renamed, please use GetLinkedLayerInstanceByGroup

Public function Const

UAnimInstanc...

 

GetSubInstanceByName

(
    FName InTag
)

This function is deprecated. Please use GetLinkedAnimGraphInstanceByTag

Public function Const

UAnimInstanc...

 

GetSubInstanceByTag

(
    FName InTag
)

This function is deprecated. Please use GetLinkedAnimGraphInstanceByTag

Public function Const

void

 

GetSubInstancesByTag

(
    FName InTag,
    TArray< UAnimInstance* >& Out...
)

Function renamed, please use GetLinkedAnimGraphInstancesByTag

Public function Virtual

void

 

K2_SetAnimInstanceClass

(
    UClass* NewClass
)

This function is deprecated. Please use SetAnimClass instead.

Public function

void

 

SetDisableAnimCurves

(
    bool bInDisableAnimCurves
)

This function is deprecated. Please use SetAllowAnimCurveEvaluation instead. Note that the meaning is reversed.

Public function

void

 

SetLayerOverlay

(
    TSubclassOf< UAnimInstance > InClas...
)

Function renamed, please use LinkAnimClassLayers

Public function

void

 

SetSubInstanceClassByTag

(
    FName InTag,
    TSubclassOf< UAnimInstance > InClas...
)

Function renamed, please use LinkAnimGraphByTag

See Also

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