-
Notifications
You must be signed in to change notification settings - Fork 185
Add climbing #1266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Add climbing #1266
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9b695af
Add climbable trait to blocks
ChibChi de60a67
Merge branch 'master' of https://github.com/ChibChi/Cubyz into featur…
ChibChi 9321f92
Add player climbing detection
ChibChi 71799d0
Add climb speed and player input handling
ChibChi 6793846
Use base friction
ChibChi b678a54
fmt stuff
ChibChi 3b5e783
Add crouching support and lower hitbox max
ChibChi 305623f
Check x and y directions for collisions and rename block name
ChibChi a2d08df
Use intersections instead of collisions
ChibChi 139a811
fmt stuff
ChibChi 8a7eeba
Move climb detection to touchBlocks
ChibChi afe8c43
fmt stuff
ChibChi 8aecff4
Fix skipping of gaps between climbable blocks
ChibChi 1b75076
Add climbSpeed for blocks
ChibChi adb838b
Add helper for area calculation
ChibChi 1e87589
Add climb speed calculation
ChibChi 3804eaf
Use the entire bounding box for climb detection
ChibChi 1358687
Make ivy climbable
ChibChi 9db69bf
Add slip velocity, so the player can not grab a climbable when fallin…
ChibChi 46aef4d
Set the climbable trait implicitly instead of explicitly
ChibChi 36c7d71
Only divide by totalArea when it is bigger than the player hitbox
ChibChi 7d49716
Separate climb movement from regular movement
ChibChi e349310
Add slip velocity and reduce grab distance
ChibChi a42a1fe
Add climb friction
ChibChi 1175085
Merge remote-tracking branch 'upstream/master' into feature/climbable
ChibChi b48a2c9
Fix plane rotation models being climable on the ground
ChibChi 5734de1
fmt stuff
ChibChi 1b025bb
Remove climb amount and store whether the player is touching a climba…
ChibChi 84f3fb6
Add crouching off onto climbable blocks
ChibChi e4e5632
Change movement input
ChibChi 53daac5
Refactor climb detection
ChibChi e753467
Change climb friction and remove gravity when climbing
ChibChi aa9bbfc
Refactor edge crouching and crouching down onto climbables
ChibChi 88cbf66
Fix climb detection
ChibChi 2ea8a0b
fmt stuff
ChibChi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,5 @@ | |
| .texture = "ivy.png", | ||
| }, | ||
| .lodReplacement = "cubyz:air", | ||
| .climbSpeed = 4, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Data should only be stored in the client-side player struct for now.