Gems/PhysX/Code/Source/Scene/PhysXSceneSimulationFilterCallback.cpp
const physx::PxActor* GetPxActor(const AzPhysics::SimulatedBody* simBody)
        {
            const AZ::Crc32& nativeType = simBody->GetNativeType();
            if (nativeType != NativeTypeIdentifiers::RigidBody &&
                nativeType != NativeTypeIdentifiers::RigidBodyStatic)
            {
                return nullptr;
            }

            return static_cast<physx::PxActor*>(simBody->GetNativePointer());
        }
// get the PxActor if the simulated body is one.
get the PxActor if the simulated body is one.
get the PxActor if the simulated body is one .
const physx::PxActor* GetPxActor(const AzPhysics::SimulatedBody* simBody)
        {
            const AZ::Crc32& nativeType = simBody->GetNativeType();
            if (nativeType != NativeTypeIdentifiers::RigidBody &&
                nativeType != NativeTypeIdentifiers::RigidBodyStatic)
            {
                return nullptr;
            }
            return static_cast<physx::PxActor*>(simBody->GetNativePointer());
        }
const physx :: PxActor * GetPxActor ( const AzPhysics :: SimulatedBody * simBody ) { const AZ :: Crc32 & nativeType = simBody -> GetNativeType ( ) ; if ( nativeType != NativeTypeIdentifiers :: RigidBody && nativeType != NativeTypeIdentifiers :: RigidBodyStatic ) { return nullptr ; } return static_cast < physx :: PxActor * > ( simBody -> GetNativePointer ( ) ) ; }
get the PxActor if the simulated body is one.
get the PxActor if the simulated body is one .