Skip to content

Releases: DeerTears/Embers-FPS-Controller

1.1: Jumping and sprinting!

26 May 03:01
8b60414
Compare
Choose a tag to compare

Added

  • Jumping and sprinting! I figure including this will help more people than if I left it out of this proof of concept.
  • Adjustable gravity, acceleration, and smoothing. I added a few more exported sliders to let you mess around with the controller in the Inspector while the game is being tested.
  • Falling down looks more natural. The lerp amount changes depending on distance and direction of travel, which means way less weird floating after big drops.

Fixed

  • Fewer "send to hell" camera bugs. A low framerate used to seriously mess up the smoothing on the camera on big slopes, where its y coordinate would go to -INF. Hopefully most of these situations have been fixed; The lerping code is a lot more robust now, based on distance rather than accounting for player speed and delta time.
  • The code looks nicer, I suppose. I did lots of refactoring to replace stuff, get everything readable without word wrap, and I removed a few unused variables.

My next goal with this repo is to look into ways to get steep slopes to be treated like 90 degree walls. I might end up with a sister repo that does the same as this but with RigidBody.

Thanks for checking out this controller! Feel free to report issues or make suggestions in the issues tab.

Godot project source 1.0

26 Apr 01:46
628ca35
Compare
Choose a tag to compare
Update README.md