Files
test/source/gameengine/Ketsji
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
..
2015-01-21 11:57:11 +11:00
2014-10-07 15:47:32 -05:00
2014-10-07 15:47:32 -05:00
2013-03-18 11:44:56 +00:00
2014-10-07 15:47:32 -05:00
2014-11-21 14:16:35 +01:00
2014-10-07 15:47:32 -05:00
2012-09-16 04:58:18 +00:00
2012-10-22 08:15:51 +00:00
2012-10-29 02:11:40 +00:00
2012-09-16 04:58:18 +00:00
2013-03-29 06:21:28 +00:00
2014-06-25 15:47:37 -07:00
2014-11-21 14:16:35 +01:00
2014-07-21 10:53:07 +10:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2013-03-26 07:29:01 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2012-11-05 14:24:35 +00:00
2013-12-24 05:44:54 +11:00
2014-10-07 15:47:32 -05:00