Velocity weaker with rigidbody

Started by torstaken 2 posts 47 views

Reply on sbox.game
  1. edited Mar 2025 #1
    torstaken 3,710
    I am trying to make a custom player controller using a Rigidbody. I used the exact same code and values for jumping and gravity from my last player player controller. The Rigidbody always falls slower, jumps lower, and feels really stiff compared to using the CharacterController component.

    gravity = 800;
    jumpForce = 300;

    rigidbody.Velocity += Vector3.Down * Gravity * Time.Delta;

    if ( Input.Pressed( "jump" ) )
         {
              rigidbody.Velocity += Vector3.Up * jumpForce;
         }

     Using Rigidbody + HullCollider:
    2025-03-13 08-00-47.mp4 2.21 MB
    Using CharacterController:
    2025-03-13 08-07-03.mp4 1.34 MB
    edited:
    nevermind i figured it out. The problem was that friction was affecting vertical velocity
    edited:
    i was on this for like 2 days
  2. #2
    Unknown