Netcode progress
April 22, 2024 • 1 min
- Today: trying to fix joints not resimming properly. If I disable joint processing by commenting out "island.Add(je)" in b2Island::Solve this prevents joints' constraints from being solved, allowing me to verify this is the case by freezing the client momentarily by grabbing the window title bar for a few seconds, causing a resimulation, and then noticing that the client is only able to reconcile if these joints are not being processed. If they are being processed then there will be an error that seems to be linearly proportional to the velocity of the entire shape. (In other words, if the shape is moving faster then the error will be larger accordingly.) I am thinking this is due to the joints being processed in the wrong order, so I am now sorting bodies by the side index within a shape as well.