victorbstan / RigidBodyController

Physics based first person character controller in Godot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code of interest in move.gd

RigidBodyController

The beginnings of a first person rigidbody character controller in Godot. Some of the benefits:

  • Pushing, being pushed by, and riding other objects with no extra code
  • Shotgun jumping and air controls
  • Movement acceleration and velocity limits
    • Velocity limits only apply to movement input. Outside forces, such as pushes or shotgun jumping can force the player above the velocity limit. The player can oppose these forces and slow down or move sideways, but can't add to the speed in the direction which is over the velocity limit.
  • Smooth movement transitions - inherent friction and inertia
  • Easy walking on slopes

Reddit Video

About

Physics based first person character controller in Godot

License:MIT License


Languages

Language:GDScript 100.0%