Camera clipping, and futurism etc as well as LOD use distance from camera to decide what to draw, and LOD uses it to decide which model to use,
Can we expose item.activeCameraDistance ? I don’t think it could hurt, and for custom LOD and level of logic, I need the property exposed, as the logic for getDistanceTo(camera) in every item adds up. and it’s already calculated for each item right?
For some reason, I’m not sure if you’ve yet gotten the idea that the [Dev] prefix should not be used for feature requests.
As for active camera distance, I’m having trouble figuring out a way in which this would not be a redundant feature just because of avoiding two additional lines of Python. Let’s just code a massive horde of built-in logic functions and bloat the code so all of our scripts can be ten lines or less :rolleyes:
If you don’t want to write a lot of Python for complex game mechanics, you can request for Moguri to complete his incomplete components implementation, that will allow you to create a plug and play GUI for any function.
Keep in mind, LOD camera distance will only be available for non-culled objects (i.e. objects in view). Hmm, I don’t think there is any LOD API for KX_GameObject, so we could add camera distance, total number of levels, current level to the list. Fortunately, this isn’t too difficult…