Version: v4.6.2.rc1.official [257ac3532]
Question:
This simple code for gravity:
func _physics_process(delta: float) -> void:
if not is_on_floor():
velocity += get_gravity() * delta
move_and_slide()
And without other external forces, I assume that the acceleration due to gravity should be the same for CharacterBody and the RigidBody, but the result looks different:
- In both 2D and 3D, CharacterBody and Rigdbody show different results.
- In 3D, I tested Jolt and GodotPhysics, and both showed the same behavior.
I’m using default settings, without any adjustments.
They should both fall at the same time, or have I misunderstood the behavior of gravity?