You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this library, since it looks pretty simple. But the Vector3f positions aren't updating inside an array? Here's what my Game State Message looks like:
public class GameWorldState {
public int tick = -1;
public HashMap<Integer, PlayerGameState> players = new HashMap<Integer, PlayerGameState>();
}
public class PlayerGameState {
//equal to connection ID
public int controlledBy = -1;
public int clientTick = -1;
public Vector3f position = new Vector3f();
public Vector3f viewDirection = new Vector3f();
public float eyeHeight = 0;
//0 to 1 of current primed arrow power
public float arrowPower = 0;
}
I've verified right before the diffHandler is called to send it that the position is indeed updating. On the receiving end it just stays the first value forever.
The text was updated successfully, but these errors were encountered:
I'm trying to use this library, since it looks pretty simple. But the Vector3f positions aren't updating inside an array? Here's what my Game State Message looks like:
public class GameWorldState {
}
public class PlayerGameState {
}
I've verified right before the diffHandler is called to send it that the position is indeed updating. On the receiving end it just stays the first value forever.
The text was updated successfully, but these errors were encountered: