Collision hitPosition?

hum …

i not think is the right way to write classes…
(also if i not know the right way, i know the wrongs :D)

to get the func wrapper with owner:


import bge


def get_wrap_collision_three(owner):
    def callback_three(object, point, normal):
        owner['HitPoint'] = str(point)
    return callback_three



def main():
    
    cont = bge.logic.getCurrentController()
    own = cont.owner

    wrap =  get_wrap_collision_three(own)
    own.collisionCallbacks.append(wrap)
main()


:wink:

@MarcoIT
That is short and simple to implement, thanks

To use partial :

Wrapped = partial(func,arg1, arg2)