Open IstuntmanI opened 7 years ago
By the way, I downloaded the latest colandreas.inc from the Releases page and it is bugged. Also, files should come in an archive, just like the previous version.
Yeah for some reason GitHub keeps appending the old include when I upload a new one. Even when I delete and reupload it. I've tried many times!
And about the water, not sure if infinite polygons are a great idea. If anything I think we should set them to 20000.0
. That is the boundary we should all stay in no matter what.
Well, you could test infinite polygons for the water mesh. This would be the proper way to do it, as the margin water is most probably infinite in GTA. I think that bulletPhysics supports that. If you won't make it infinite, make it 30000.0
, just in case. I don't think too many developers extended the world boundaries past 20000.0
. Those boundaries aren't a solid wall, but something that is pushing you back, so the limit should be at least 20050.0
I guess (maybe you could push the limit a bit with an airplane ? didn't test that).
Players can go past the boundary no problem, the problem is the syncing bugs and slight side effects that occur past 20000. It's best to stick to these boundaries not to encourage going past it. Bullet can most definitely support infinite it's just not really recommended within SA-MP. I'd be fine with setting the boundary to 20000 though.
In "src/WaterArray.h":
All those +- 10000 values should be set to infinity. By default, the world boundaries are ( -20000, -20000, 20000, 20000 ), so players can go behind those +- 10000 values by default. World boundaries could be increased, so I think that this would be ok:
or a bit nicer:
By the way, I downloaded the latest colandreas.inc from the Releases page and it is bugged. Also, files should come in an archive, just like the previous version.