Search Unity

Question Rigidbody not adding force

Discussion in 'Physics' started by wolfgrey139, Jun 10, 2023.

  1. wolfgrey139

    wolfgrey139

    Joined:
    Jun 10, 2023
    Posts:
    1
    As the title says, Rigidbody is not adding force no matter what combination of inputs I do, even if I copy and paste the example code given by Unity.


    Pictures of code/components
    upload_2023-6-10_10-45-2.png

    upload_2023-6-10_10-48-5.png

    upload_2023-6-10_10-48-38.png

    upload_2023-6-10_10-49-30.png
     
  2. inSight01

    inSight01

    Joined:
    Apr 18, 2017
    Posts:
    90
    I don't believe Rigibody works with Character Controller.

    https://docs.unity3d.com/ScriptReference/CharacterController.html

    • A CharacterController allows you to easily do movement constrained by collisions without having to deal with a rigidbody.
    • A CharacterController is not affected by forces and will only move when you call the Move function. It will then carry out the movement but be constrained by collisions.
     
    arkano22 likes this.