How to change physics settings with script or logic bricks in BGE?

So I’m doing a billiard game for fun but I need the stick to be in ghost mode most of the time, but when you hit the ghost mode should be disabled.
I don’t know how to do this, so if you know how, please tell me, I’d be really happy.
Thanks :slight_smile:

I think in a Python script it is: GameObjectSettings.use_ghost
Maybe you could do something like this:

if #collision:
GameObjectSetting.use_ghost = False

else:
GameObjectsettings.use_ghost

I’m not sure if it’s used like this or not, so don’t use this script (it wouldn’t work anyway)

Another thing you could do is:
Add Actuator --> Edit Object-Replace Mesh (replace the mesh for an exact copy of the stick that has Ghost turned off)

Thanks Nemescraft! :slight_smile: