Hiding entities
Blitz3D Forums/Blitz3D Programming/Hiding entities| 
 | ||
| Is there any way to tell Blitz3D do not render entities (animated or static) when these are far away from camera, in order to improve speed execution? Thanks | 
| 
 | ||
| Well, you can do this using EntityInView, EntityDistance (from camera) and HideEntity. Don't know how much of a speedup this would buy you, though. Guess it depends on the game. Also, If you use HideEntity, those entities no longer take part in collisions. If this is a problem, set the mesh's EntityAlpha to 0 to hide them instead. This will stop them from being rendered, but still participate in collisions. I think that's right. | 
| 
 | ||
| or just set the camera draw distance and blitz will handle it for you. | 
| 
 | ||
| And there's EntityAutoFade, too. | 
| 
 | ||
| Thanks! |