Skip to content

Commit

Permalink
fix: momentum reset when jumping (#29)
Browse files Browse the repository at this point in the history
* fix: bug causing player to slowdown instantly after jumping

* fix: add weight to player, fix events, removed 2 colliders

* fix: add folders for different types of materials

* fix: tweak physic settings for smooth criminal walking

* feat: add scene specific for debug

* fix: correct name of the scene

* fix: change value on static friction

* fix: change speed cap to be hard capped and add air variable

Air variable to exclude lose numbers in code.

* fix: set respawn point correctly

* fix: change value acceleration, removed remaining debugs, remove non speed limitor

* fix: remove folders in material, this is done in another commit

* fix: horizontal and vertical speeds are checked independent from each other

* chore: add enter so the instruction of the if is on a new line

Co-authored-by: Joen <[email protected]>

* chore: reset acceleration, fix if statement from site commit

* chore: add white lines to reduce visual clutter

* feat: add separate max speed variables for ground and air

---------

Co-authored-by: Joen <[email protected]>
  • Loading branch information
SSelinn and JoenvandeVorle authored Apr 11, 2024
1 parent 232a8ca commit 52b102a
Show file tree
Hide file tree
Showing 8 changed files with 5,193 additions and 281 deletions.
4 changes: 2 additions & 2 deletions aplib.net-demo/Assets/Materials/PlayerPhysic.physicMaterial
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ PhysicMaterial:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: PlayerPhysic
dynamicFriction: 0.6
staticFriction: 0.1
dynamicFriction: 0.25
staticFriction: 0.05
bounciness: 0
frictionCombine: 0
bounceCombine: 0
3,726 changes: 3,726 additions & 0 deletions aplib.net-demo/Assets/Scenes/FixMomentum.unity

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions aplib.net-demo/Assets/Scenes/FixMomentum.unity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 52b102a

Please sign in to comment.