blender/doc/python_api/rst
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
..
bge_types BGE - new read-only attribute in KX_GameObject python api (LOD level) 2015-03-15 17:26:49 +01:00
bge.constraints.rst BGE: Add missing documentation and attribute constraint_type for ConstraintWrapper 2014-07-17 22:52:23 -07:00
bge.events.rst BGE doc cleanup: Some small cleanups in the BGE docs: 2014-03-31 22:22:04 -07:00
bge.logic.rst BGE: TrackTo actuator: increasing up & track axis options 2014-07-14 18:30:27 -07:00
bge.render.rst Docs: touch ups in the bge.render doc introduction 2015-01-22 03:20:39 -02:00
bge.texture.rst BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender. 2012-10-20 22:28:44 +00:00
bge.types.rst BGE: Splitting up the bge.types docs so they are not all on the same page. This should make them much easier to browse. 2013-02-10 06:13:26 +00:00
bgl.rst Documentation update: references to OpenGL tutorials in the python bgl module 2015-02-21 12:16:19 +00:00
change_log.rst update autogenerated changelog. also correct typos in the generator. 2013-05-09 01:58:49 +00:00
gpu.rst Syntax correction for gpu docs, D124 2013-12-23 17:24:23 +11:00
include__bmesh.rst BMesh Py API: add bmesh.geometry.intersect_face_point() 2013-12-06 21:15:56 +11:00
info_api_reference.rst Add 2 documents to the python api reference. 2012-12-07 05:27:09 +00:00
info_best_practice.rst spelling cleanup: spelling corrections from user zeffii on IRC. 2012-08-19 15:28:24 +00:00
info_gotcha.rst API Docs: typos 2014-08-06 02:12:52 +10:00
info_overview.rst Add 2 documents to the python api reference. 2012-12-07 05:27:09 +00:00
info_quickstart.rst PyAPI docs: minor changes to sphinx docs. 2015-01-08 03:55:01 +11:00
info_tips_and_tricks.rst Fix T38032, typo in Python API documentation. 2014-01-03 02:28:21 +01:00
info_tutorial_addon.rst PyAPI docs: minor changes to sphinx docs. 2015-01-08 03:55:01 +11:00