tornavis/doc
Pierluigi Grassi 225027ce5d BGE - new read-only attribute in KX_GameObject python api (LOD level)
Added a new "current_lod_level" property to the python api of
KX_GameObject. The property returns the current lod level of the game
object. The purpose of the property is activate logic routines only when
an object is at a certain lod-distance from the camera, avoiding to
separately recomputing the same distance in the logic script. Usage in
python script might look like:

owner = bge.logic.getCurrentController().owner
lod_level = owner.currentLodLevel
if lod_level == 0: ...do something
else: ... object might be too distant

Reviewers: dfelinto, kupoman, moguri

Reviewed By: kupoman, moguri

Subscribers: lordloki

Projects: #game_engine

Differential Revision: https://developer.blender.org/D978
2015-03-15 17:26:49 +01:00
..
blender_file_format update dna exporter for API changes 2014-11-14 00:55:40 +01:00
build_systems Update scons build documentation 2015-01-28 23:40:41 +05:00
doxygen doxygen: updating blender version and link to tracker 2015-02-21 12:16:20 +00:00
guides Code cleanup: removed some unused UI button types 2013-06-09 18:05:50 +00:00
license And here is the first git (testing) commit by me! 2013-11-16 12:00:42 +01:00
manpage cleanup: shebang lines 2015-01-29 15:56:23 +11:00
python_api BGE - new read-only attribute in KX_GameObject python api (LOD level) 2015-03-15 17:26:49 +01:00