But im scattering the light indirectly to make All Alpha textures pop out “NICELY”, it’s quite performance friendly but i’ll balance it out eventually. and also further optimize everything.
I’ve got a problem to solve and need help.
I’was trying to make a lock on system with this script:
import bge
def trackNearestProperty(cont):
debug=True
if not ‘target’ in cont.owner:
if debug:print(‘No property called “target” found, please specify target property’)
return
property = cont.owner[‘target’]
objects = sorted([[ob,cont.owner.getDistanceTo(ob)] for ob in bge.logic.getCurrentScene().objects if property in ob], key=lambda x:x[1])
if objects:
if objects[0][0] == cont.owner:
objects.remove(objects[0])
cont.owner.alignAxisToVect(cont.owner.getVectTo(objects[0][0])[1],1,1)
return
if debug:print(‘No Objects with Property:’,property)
How to change this script to check objects only visible in camera frustrum???
Or maybe someone know how to make a lock on system?