I'm trying to create a landmine for my game, I would like the player after placing it could view the radius of impact. This way I have been trying to get a python code that activates the show_physics_visualization button on a single object. I Tried:

Import bpy
Bpy..data.scene ["Scene"] game_settings.show_physics_visualization (True)

My mine object is called MineForce. enter image description here Thank you.

  • 1
    $\begingroup$ that will not work, period. First the physics visualization is a toggle, game wide. second bpy is blender's api, that will do nothing in a running game. bge is the api for the game engine. $\endgroup$
    – David
    Jul 9, 2017 at 3:22
  • $\begingroup$ Create another object to be the child of the mine that shows the blast radius. Maybe a shapekey could show/hide the display mesh if it was part of the same object. $\endgroup$
    – sambler
    Jul 9, 2017 at 4:06

1 Answer 1


As mentioned in the comments above:

  • Show Physics Visualization is for debugging purposes - and should not be part of the game.
  • Range indicators are part of your game. You can present them as you like. For example a cone with wireframe material would provide you the look you are looking for.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .