Download

How to get bone local location by bone index?

Hi guys,

I used to use the function USkeletalMeshComponent::GetBoneLocation(FName BoneName, EBoneSpace::Type Space == EBoneSpace::World). This is totally perfect. However I don’t want to keep transferring bone names several times each frame, I’d like to use BoneIndex instead, but the available function for that doesn’t give the option to choose component versus world space, I need the local space.

What are best alternative ways to go about this.

Thanks for reading and take care.

Looking at the source code, the above function calls


GetComponentSpaceTransforms()[BoneIndex].GetLocation()

when it’s called with


Space == EBoneSpaces::ComponentSpace

. It does a couple more things, but this seems to be the important part. Maybe that’ll help you find what you’re looking for.