4.0 what to change?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By HaptikRevamp

Does anyone know what exactly has to be changed in order to use Godot 4.0 i know its still incomplete but i really want to try it but the game simply wont start due to some of the code.

onready var camera_rot = $CameraRot

onready var Ray: RayCast = get_node("RayDetectFloor")

onready var gravity = ProjectSettings.get_setting("physics/3d/default_gravity") * ProjectSettings.get_setting("physics/3d/default_gravity_vector")

Cam anyone please help me with these?

:bust_in_silhouette: Reply From: marcrotls

Annotations in GDScript #828

@onready var camera_rot = $CameraRot

var Ray: RayCast = get_node(“RayDetectFloor”)

var gravity = ProjectSettings.get_setting(“physics/3d/default_gravity”) * ProjectSettings.get_setting(“physics/3d/default_gravity_vector”)