blender/doc/python_api
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-org fix [#28151] export OBJ don't save the extension 2011-08-03 05:32:07 +00:00
epy hide overly picky warnings from 'pylint' for pep8 script, indentation edits. 2011-11-19 16:17:35 +00:00
examples Typo fix + clarification in mathutils.Vector example 2015-02-10 21:25:01 +01:00
rst BGE - new read-only attribute in KX_GameObject python api (LOD level) 2015-03-15 17:26:49 +01:00
rst_from_bmesh_opdefines.py Add flag for bmesh docs 2014-09-09 22:07:31 +10:00
sphinx_changelog_gen.py cleanup: pep8 2015-01-29 15:35:06 +11:00
sphinx_doc_gen_monkeypatch.py Cleanup: pep8 2014-09-17 18:36:17 +10:00
sphinx_doc_gen.py Documentation: Support documenting constructors in class __doc__ 2015-02-01 14:00:43 +01:00
sphinx_doc_gen.sh API Docs: remove hardcoded self from shellscript 2014-11-26 20:24:04 +01:00