+1 vote

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?
Thanks

in Engine by (39 points)

1 Answer

0 votes

Annotations in GDScript #828

@onready var camera_rot = $CameraRot

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

@onready
var gravity = ProjectSettings.getsetting("physics/3d/defaultgravity") * ProjectSettings.getsetting("physics/3d/defaultgravity_vector")

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.