Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkinnedMeshComponent
Description
Transform a location/rotation from world space to bone relative space. This is handy if you know the location in world space for a bone attachment, as AttachComponent takes location/rotation in bone-relative space.
| Name | TransformToBoneSpace |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkinnedMeshComponent.h |
| Include Path | #include "Components/SkinnedMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SkinnedMeshComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Components|SkinnedMesh")
void TransformToBoneSpace
(
FName BoneName,
FVector InPosition,
FRotator InRotation,
FVector & OutPosition,
FRotator & OutRotation
) const
Parameters
| Name | Remarks |
|---|---|
| BoneName | Name of bone |
| InPosition | Input position |
| InRotation | Input rotation |
| OutPosition | (out) Transformed position |
| OutRotation | (out) Transformed rotation |