How to set the physics type to No collision in bge using python?
I need a script to change the physics type to No_collision in game, please help me
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityYou can't change the physics type.
You can replace the object with another one, that is of the desired physics type. Do not forget to copy all necessary attributes from the previous object (such as linear and angular velocity).
hmm try using
cont = bge.logic.getCurrentController()
obj = cont.owner
obj.suspendDynamics()
if it doesn't fit your needs you will have to replace the object by another one which has the collision type you want in-game.