Add Object Problem with Python

When I add a object with python and it gets close to the edge of the screen or camera, it goes invisible before it is completely out of view. Anyone know how to fix this?

import bge

cont = bge.logic.getCurrentController()
own = cont.owner

scene = bge.logic.getCurrentScene()

object = scene.objectsInactive[‘object’]

scene.addObject(object, own, 0)


That may be because it has unapplied modifiers. Also there is no need to get the inactive object name. Whenever you add an object, it’s always inactive.

if you have multiple scenes, then specifying the objectInactive is necessary.

does the object work fine if its not added in? to me it sounds like a physics issue, make sure all the children dont have physics.

I was using UPBGE, tried it in vanilla bge an it worked fine. thanks anyway.