# How to get current position of a primitive from AsyncPhysicsTick?

**URL:** <https://forums.unrealengine.com/t/how-to-get-current-position-of-a-primitive-from-asyncphysicstick/2104302>\
**Category:** C++\
**Tags:** unreal-engine, question, CPP\
**Created:** [November 4, 2024, 2:00pm UTC](https://forums.unrealengine.com/t/how-to-get-current-position-of-a-primitive-from-asyncphysicstick/2104302 "2024-11-04T14:00:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![playwithmewerder](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/playwithmewerder/32/971685_2.png) [@playwithmewerder](https://forums.unrealengine.com/u/playwithmewerder)\
**Post date:** [November 4, 2024, 2:00pm UTC](https://forums.unrealengine.com/t/how-to-get-current-position-of-a-primitive-from-asyncphysicstick/2104302/1 "2024-11-04T14:00:59Z")

</div>

Currently getting it from FBodyInstanceAsyncPhysicsTickHandle::GetX().

Gives me this: LogOutputDevice: Error: Ensure condition failed: IsInGameThreadContext()

---

<div class="post-metadata">

**Author:** ![1876141237](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/1876141237/32/1197774_2.png) [@1876141237](https://forums.unrealengine.com/u/1876141237)\
**Post date:** [July 12, 2025, 2:42am UTC](https://forums.unrealengine.com/t/how-to-get-current-position-of-a-primitive-from-asyncphysicstick/2104302/2 "2025-07-12T02:42:04Z")

</div>

Do you have a solution? I’ve encountered the same problem

---

<div class="post-metadata">

**Author:** ![playwithmewerder](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/playwithmewerder/32/971685_2.png) [@playwithmewerder](https://forums.unrealengine.com/u/playwithmewerder)\
**Post date:** [July 16, 2025, 6:32am UTC](https://forums.unrealengine.com/t/how-to-get-current-position-of-a-primitive-from-asyncphysicstick/2104302/3 "2025-07-16T06:32:03Z")

</div>

Chaos::FRigidBodyHandle\_Internal\* GetInternalHandle(UPrimitiveComponent\* Component, FName BoneName)  
{  
if (IsValid(Component))  
{  
if (const FBodyInstance\* BodyInstance = Component-\>GetBodyInstance(BoneName))  
{  
if (const auto Handle = BodyInstance-\>ActorHandle)  
{  
if (Chaos::FRigidBodyHandle\_Internal\* RigidHandle = Handle-\>GetPhysicsThreadAPI())  
{  
return RigidHandle;  
}  
}  
}  
}  
return nullptr;  
}

And then

FTransform GetTransform\_APT(UPrimitiveComponent\* Component)  
{  
if (const Chaos::FRigidBodyHandle\_Internal\* RigidHandle = GetInternalHandle(Component))  
{  
const Chaos::FRigidTransform3 WorldCOM = Chaos::FParticleUtilitiesGT::GetActorWorldTransform(RigidHandle);  
return WorldCOM;  
}  
return Component ? Component-\>GetComponentTransform() : FTransform();  
}
