0 votes

I'm sending UDP packets to a PC that runs a Godot app. The packets contain 4 byte floats. I'm using PacketPeerUDP to receive the packets. The problem is that, PacketPeerUDP has only a method (getpacket()) to read packets as bytes and not as floats.... How to reconstruct the the packets as floats? (I don't want to use getvar() because it introduces extra overhead to the sender)
Any ideas are highly appreciated.

asked Mar 13 in Engine by xlxs (17 points)

1 Answer

0 votes
answered Mar 13 by Zylann (26,061 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.