From f7e2f3a4d5a39bcc1511f5174011f767224064c6 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 2 Mar 2026 19:20:15 -0600 Subject: [PATCH] Only set kinematic target if rigid body has kinematic flag. --- Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp b/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp index 8c3d3610e..b5efa9d73 100644 --- a/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp +++ b/Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp @@ -2450,7 +2450,7 @@ void PhysicsBackend::SetRigidActorPose(void* actor, const Vector3& position, con if (kinematic) { auto actorPhysX = (PxRigidDynamic*)actor; - if (actorPhysX->getActorFlags() & PxActorFlag::eDISABLE_SIMULATION) + if (actorPhysX->getActorFlags() & PxActorFlag::eDISABLE_SIMULATION || !(actorPhysX->getRigidBodyFlags() & PxRigidBodyFlag::eKINEMATIC)) { // Ensures the disabled kinematic actor ends up in the correct pose after enabling simulation actorPhysX->setGlobalPose(trans, wakeUp);