UDestructibleComponent::SetChunkWorldRT

This method sets a chunk's (fractured piece's) world rotation and translation.

Windows
MacOS
Linux

References

Module

ApexDestruction

Header

/Engine/Plugins/Runtime/ApexDestruction/Source/ApexDestruction/Public/DestructibleComponent.h

Include

#include "DestructibleComponent.h"

Source

/Engine/Plugins/Runtime/ApexDestruction/Source/ApexDestruction/Private/DestructibleComponent.cpp

Syntax

void SetChunkWorldRT
(
    int32 ChunkIndex,
    const FQuat & WorldRotation,
    const FVector & WorldTranslation
)

Remarks

This method sets a chunk's (fractured piece's) world rotation and translation.

Parameters

Parameter

Description

ChunkIndex

Which chunk to affect. ChunkIndex must lie in the range: 0 <= ChunkIndex < ((DestructibleMesh*)USkeletalMesh)->ApexDestructibleAsset->chunkCount().

WorldRotation

The orientation to give to the chunk in world space, represented as a quaternion.

WorldRotation

The world space position to give to the chunk.

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