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.