Skip to content

Commit

Permalink
Fix unwanted character sliding on slopes and add new ramp obstical
Browse files Browse the repository at this point in the history
The character used to slide down slopes with a low enough incline to be
the floor.

The character used to run up (or slide up if in the Air state) slopes
that are too steep to be the floor.

New bad behaviour:
- On slopes with an incline equal to max_floor_angle, the character
makes a slight hop after running up and looses their grounding when
running down them.
- When the character runs into a steep slope they perform short hops due
to sliding upwards. Ideally the player would stay on the ground (no
sliding up the slope). This can be exploited to jump higher.

A new ramp obstical (Rampy) was added to the main Game scene to test the
slope behaviour.

Closes: gdquest-demos#25
  • Loading branch information
maystey committed Apr 5, 2020
1 parent fbad768 commit b0f3d0c
Show file tree
Hide file tree
Showing 7 changed files with 1,101 additions and 4 deletions.
Binary file added assets/3d/level/rampy.glb
Binary file not shown.
Loading

0 comments on commit b0f3d0c

Please sign in to comment.