Pulse Works Studio

Parse Error: Identifier "KinematicBody" not declared in the current scope. Did you mean to use "CharacterBody3D"?

The Godot 3 class KinematicBody is CharacterBody3D in Godot 4.

Cause

KinematicBody was the 3D kinematic physics body. Godot 4 split kinematic bodies into CharacterBody3D and AnimatableBody3D. The parser suggests CharacterBody3D because that is the entry in the engine rename map.

Fix

extends CharacterBody3D

func _physics_process(delta: float) -> void:
	if not is_on_floor():
		velocity.y -= 9.8 * delta
	move_and_slide()

Related

Godot Dev Tools is a Pulse Works Studio project. All error explainers.