Scene: dbvt_culling

dbvt_culling
  • gets/sets whether or not DBVT culling is being used. 

Type:

  • boolean
     
  • using DBVT culling: 1 or True
     
  • not using DBVT culling: 0 or False
Note:
  • DBVT: Dynamic Bounding box Volume Tree
     
  • As I understand it (and I might be wrong), dbvt culling disables collision detection for dynamic objects in the scene that aren't a part of the current branch of the Volume Tree.
Sample Code

################## get the dbvt culling status

# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get the dbvt culling status
status = scene.dbvt_culling

Sample Code

################## set the dbvt culling status

# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# use dbvt culling
scene.dbvt_culling = True