Original Post
ok..continuing saga of newbie programmers...
we got variable packet size working (packing and unpacking from a char[] structure using memcpy)...but we have a really strange situation.
the client sends a float array of size 3 (its position) to the server...the server receives/unpacks the data fine. then when it comes time to send the data back to the client...the client receives and unpacks the data fine. however, when we try to update the client''s data (i.e. if the server detects a collision it tells the client not to move even if the client wants to move) the client''s data changes on a small scale.
e.g.
we can receive it into xPos and zPos
print out xPos and zPos and everything is fine and constant if the client is not moving
but if we receive xPos and zPos
and put it in client->xPos and client->zPos the data values will alternate between say .1234 and .1534
any ideas? (we''ve tried just regular assignment and trying to memcpy the values in)