I’m new to Defold, please excuse if the answer is obvious, but I couldn’t find anything.
How could I create input (with permanent update of action.x, action.y for a start) from data received via network? I would like to experiment with hand position detected by YOLOv7, which comes as a stream of UDP packages. I found the examples for receiving data from network, but I somehow miss how I can trigger input events of a gameobject.
To make sure I understand, you mean, I shall save the x,y position somwhere, and in my functionupdate(self, dt) I call handle_input(x, y) to react on the changed coordinates?
Well, it depends on how you handle the data coming from the stream?
You still need to poll the data from the socket.
That might be a good place to call the handler.
But you could also save the info for later.