Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Correct entity width: 0.6
- *** First we move an entity around the way vanilla code does and see the problem...
- Starting out at some place in the world:
- Xmin=1.8,Xmax=2.4000000238418577,w=0.6000000238418577
- Xcenter=2.1000000119209288
- Have the entity get shoved around for a while...
- Shifting Xmin and Xmax both by:
- +0.01562500000000011
- +0.015625000000000114
- +0.01562500000000011
- +0.015625000000000114
- +0.01562500000000011
- +0.015625000000000114
- +0.01562500000000011
- +0.015625000000000114
- +0.01562500000000011
- +0.015625000000000114
- +0.01562500000000011
- +0.015625000000000114
- +0.015625000000000003
- +0.015625000000000222
- Finally ended up at:
- Xmin=2.0187500000000034,Xmax=2.6187500238418577,w=0.6000000238418544
- Xcenter=2.3187500119209306
- new width is 0.6000000238418544, 3.552713678800501E-15 smaller than it should be
- Imagine it got shoved one last time, against a wall to the west:
- New bounding box and computed center:
- Xmin=2.0,Xmax=2.6000000238418544,w=0.6000000238418544
- Xcenter=2.300000011920927
- Only the center is saved to disk. When reloaded, we get this:
- Reloaded center and computed faces:
- Xcenter=2.300000011920927
- Xmin=1.9999999999999982,Xmax=2.600000023841856,w=0.6000000238418579
- The west face now intersects the wall by -1.7763568394002505E-15
- Imagine instead it got shoved one last time, against a wall to the east:
- New bounding box and computed center:
- Xmin=2.3999999761581456,Xmax=3.0,w=0.6000000238418544
- Xcenter=2.699999988079073
- Only the center is saved to disk. When reloaded, we get this:
- Reloaded center and computed faces:
- Xcenter=2.699999988079073
- Xmin=2.399999976158144,Xmax=3.0000000000000018,w=0.6000000238418579
- The east face now intersects the wall by 1.7763568394002505E-15
- *** Now try again with code that maintains consistency between bounds and center...
- Starting out at some place in the world:
- Xmin=1.8,Xmax=2.4000000238418577,w=0.6000000238418577
- Xcenter=2.1000000119209288
- Have the entity get shoved around for a while...
- Shifting Xmin and Xmax both by:
- +0.01562500000000011
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- -0.015625000000000226
- +0.015625000000000114
- -0.015625000000000222
- +0.015625000000000114
- Finally ended up at:
- Xmin=1.9874999999999803,Xmax=2.587500023841838,w=0.6000000238418579
- Xcenter=2.2875000119209092
- new width is 0.6000000238418579, 0.0 smaller than it should be
- Imagine it got shoved one last time, against a wall to the west:
- New bounding box and computed center:
- Xmin=1.0,Xmax=1.600000023841858,w=0.6000000238418579
- Xcenter=1.300000011920929
- Only the center is saved to disk. When reloaded, we get this:
- Reloaded center and computed faces:
- Xcenter=1.300000011920929
- Xmin=1.0,Xmax=1.600000023841858,w=0.6000000238418579
- The west face now intersects the wall by 0.0
- Imagine instead it got shoved one last time, against a wall to the east:
- New bounding box and computed center:
- Xmin=2.399999976158142,Xmax=3.0,w=0.6000000238418579
- Xcenter=2.699999988079071
- Only the center is saved to disk. When reloaded, we get this:
- Reloaded center and computed faces:
- Xcenter=2.699999988079071
- Xmin=2.399999976158142,Xmax=3.0,w=0.6000000238418579
- The east face now intersects the wall by 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement