Scene: activity_culling_radius

activity_culling_radius
  • gets/sets the distance at which activity culling should start.

Type:

  • float number
Note:
  • Activity culling disables game object logic bricks when the camera is more than a certain distance from the game object.
     
  • Uses Manhattan distance.   Think city blocks and distance traveled in a city.  
     
  • To go from South West corner of a city to North East corner, you can't travel in a straight line.  You would go North one block, East one block, North one block, etc.   The actual distance you'd have to travel is the Manhattan distance.
Sample Code

################## get activity culling radius
 

# import bge
import bge

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

# get activity culling radius
dist = scene.activity_culling_radius

Sample Code

################## set activity culling radius

# import bge
import bge

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

# set activity culling radius
scene.activity_culling_radius = 5.0