HouraiTeahouse / FantasyCrescendo

A 2.5D Touhou Platform Fighter, By the fans, for the fans.
https://docs.houraiteahouse.net/FantasyCrescendo
GNU General Public License v2.0
107 stars 29 forks source link

Snap grounded characters to the ground #214

Closed james7132 closed 7 years ago

james7132 commented 7 years ago

When moving sufficiently fast on sloped terrain, characters fairly easily float above ground from the horizontal and enter a floating state. This is undesirable as characters should stick to the ground as closely as possible when on the ground.

The change would mainly involve a frame by frame raycast check below a characters feet. If a stage element is found within a certain distance, the character controller is forced down to snap to it's surface.