Commit Graph

8875 Commits

Author SHA1 Message Date
Ludvig Böklin
dc491eead5 Basic (frame-dependent!) client-side lerp of wind velocity 2021-06-22 15:45:32 +02:00
Ludvig Böklin
ba12d784ed Decrease wind velocities 2021-06-22 15:45:31 +02:00
Ludvig Böklin
3caea942e5 Interpolate fluid velocity updates to entities 2021-06-22 15:45:31 +02:00
Ludvig Böklin
bd76bf823a Fixed timesteps for windsim 2021-06-22 15:45:31 +02:00
Ludvig Böklin
788d0e7e13 Set wind velocities on entities in server 2021-06-22 15:45:31 +02:00
Oresavna
0338b67527 add frequency control for sim - once per second 2021-06-22 15:45:31 +02:00
Ludvig Böklin
bcb62df809 Add lots of wind sources at the western border of map and make them tweakable 2021-06-22 15:45:31 +02:00
Ludvig Böklin
91f96a57f5 add add_velocity_source helper to WindSim 2021-06-22 15:45:31 +02:00
Oresavna
766897ce65 Make results of wind simulation push the player 2021-06-22 15:45:31 +02:00
Oresavna
63f2105c84 send WindRequest from client and receive WindUpdate 2021-06-22 15:45:31 +02:00
Oresavna
c885aa3607 Add WindUpdate and WindRequest messages 2021-06-22 15:45:31 +02:00
Oresavna
b971e46753 Add world to grid conversions to WindSim 2021-06-22 15:45:31 +02:00
Oresavna
711b76202b Add windsim module and system to server crate 2021-06-22 15:45:31 +02:00
Ludvig Böklin
1ea087a54d Debug visualisation of relative wind velocity 2021-06-22 15:43:30 +02:00
Ludvig Böklin
1960ddd62b Make debug lines visible from more directions 2021-06-22 15:43:30 +02:00
Ludvig Böklin
eddc967462 Fix GlideWield overriding state changes 2021-06-22 11:20:40 +02:00
Ludvig Böklin
2165fc7d2e Cargo.lock 2021-06-22 10:40:40 +02:00
Ludvig Böklin
8a987b8de1 Undo gravity hack and set gravity to 1G again 2021-06-22 10:32:10 +02:00
Ludvig Böklin
4e3453301b Improve glider rotation 2021-06-22 10:32:10 +02:00
Ludvig Böklin
1022477713 Maybe fix glider flip 2021-06-22 10:32:10 +02:00
Ludvig Böklin
4568a7a38f Hack custom gravity of 1G while gliding 2021-06-22 10:32:10 +02:00
Ludvig Böklin
a8d4beccf5 Cargo.lock 2021-06-22 10:32:10 +02:00
Ludvig Böklin
262b91a14e Tweak glider controls
Adjust base glider pitch
2021-06-22 10:32:09 +02:00
Ludvig Böklin
fb4edef4f8 Set GRAVITY to 25.0 as in master and adjust drag reference area scale to compensate 2021-06-22 10:32:09 +02:00
Ludvig Böklin
fa24a5c317 Remove timed input easing after started gliding 2021-06-22 10:32:09 +02:00
Ludvig Böklin
56dfd5a4ff Glider dist based on char height 2021-06-22 10:32:09 +02:00
Ludvig Böklin
b62177e091 Don't remove all negative lift 2021-06-22 10:32:09 +02:00
Ludvig Böklin
63fd08f619 Make character visually rotate around centre of gravity while gliding 2021-06-22 10:32:09 +02:00
Ludvig Böklin
c1ecc8374b Ease glider roll 2021-06-22 10:32:09 +02:00
Ludvig Böklin
dbffd90f0e Prevent rotation from negative lift and fix glider ori in wield state 2021-06-22 10:32:09 +02:00
Ludvig Böklin
6f2f27e993 Fix issue with nonsensical glider roll 2021-06-22 10:32:09 +02:00
Ludvig Böklin
94bfa1c72a Keep character standing up while on ground 2021-06-22 10:32:09 +02:00
Ludvig Böklin
61233fd59d Don't reset ori when exiting glide state and misc tweaks 2021-06-22 10:32:09 +02:00
Ludvig Böklin
9e20b090c4 Implement aerodynamic GlideWield 2021-06-22 10:32:09 +02:00
Ludvig Böklin
df666cef40 Improve glider controls; physics-based heuristic for character ori 2021-06-22 10:31:56 +02:00
Ludvig Böklin
208438a26c Add some util functions to Ori 2021-06-22 10:31:41 +02:00
Ludvig Böklin
74f9945ab3 Refactor and abstract fluid dynamics 2021-06-22 10:31:40 +02:00
Ludvig Böklin
5f44101486 Define humanoid dimensions as measured in-game
Make Body::dimensions and Body::height methods const

Modify humanoid dimensions for calculation of drag
2021-06-22 10:24:54 +02:00
Ludvig Böklin
986b413521 Sort cases in mass match 2021-06-22 10:23:42 +02:00
Treeco
856e3849f7 Vastly improve glide ratios and soaring capability
Character masses and dimensions have been vastly changed. This is necessary to limit drag - they were practically sails previously.
Character proportions are now closer to those of IRL humans than to their voxel models.
This may screw up entity collision, in which case body dimensions for aerodynamics and for everything else may need to be separated.
Gliders now scale with character size, with a wingspan 3x their height and a chord 1x/3.
Gliding is also now very very fast under 2.5g, but much tamer under Earth gravity. This may need dealing with.
2021-06-22 10:23:41 +02:00
Dominik Broński
8356e2ffca Merge branch 'aweinstock/lava' into 'master'
Lava

See merge request veloren/veloren!2482
2021-06-21 20:49:44 +00:00
Joshua Barretto
011f76dbf2 Merge branch 'zesterer/small-fixes' into 'master'
Small improvements

See merge request veloren/veloren!2488
2021-06-21 20:49:41 +00:00
Joshua Barretto
e930ff6779 Sanitise controller inputs 2021-06-21 21:13:49 +01:00
Joshua Barretto
90e5bac395 Made movement slower when strafing in non-forward directions 2021-06-21 20:32:20 +01:00
Joshua Barretto
b84708ca75 Added chat toggle 2021-06-21 20:16:03 +01:00
Joshua Barretto
8ab222bf80 Selectively disable glow flicker for small wins on low-end systems 2021-06-21 17:06:43 +01:00
Joshua Barretto
f85a59d33a Merge branch 'zesterer/small-fixes' into 'master'
A plethora of improvements

See merge request veloren/veloren!2486
2021-06-21 14:19:13 +00:00
Joshua Barretto
288f2c13d4 Enable strafing in first-person mode 2021-06-21 13:27:19 +01:00
Justin Shipsey
c744cd4365 Merge branch 'donovanlank/Cool_Blue_Lantern' into 'master'
made it so Cool Blue Lantern is actually blue

See merge request veloren/veloren!2474
2021-06-21 05:37:49 +00:00
Marcel
ec7d3b5e37 Merge branch 'swilliams/give_item_fix' into 'master'
Fix for Issue 1210

See merge request veloren/veloren!2484
2021-06-20 23:26:59 +00:00