bpy add object in game is it possible to add an object inside the game engine with upbge 3.X.X while having game physics work properly ?
What I'm doing is:
patch = bpy.data.objects['Patch1']

for i in range(4):
    for j in range(4):
        if i or j:
            copy = patch.copy()
            copy.data = patch.data.copy()
            bpy.context.collection.objects.link(copy)
            copy.location = (i*256, j*256, 0)

This is connected to an 'always' sensor set on tap and does add my patches of ground as expected, but there are no physics and the player goes through the objects.
I tried adding

copy.game.physics_type = 'STATIC'

But this doesn't sort my issue.
you have to use own.scene.convertBlenderObject(bpy_object) to wrap it in a KX_Object / convert its logic