Does a node class that extends an abstract class count in the node list?

Godot Version

Godot 4.6.2, Steam, Debian 13

Question

I want to create a new node that extends CollisionObject2D, but I noticed it isn’t listed in the node list, why?

I have this script called meteor.gd saved in the root of my project:

class_name Meteor
extends CollisionObject2D

@export var fall_speed: float = 100.0

var velocity: Vector2 = Vector2.ZERO

func move(delta: float):
	position += velocity * delta

func _physics_process(delta: float) -> void:
	velocity.y = fall_speed
	move(delta)

Shouldn’t it be listed in the node list?

But when I use `Area2D` it works.

Why I can’t make it extends CollisionObject2D?

I may not noticed something important too

I have done that before and it should work. class_name s are still a bit buggy, sometimes you have to restart the editor for it register correctly

1 Like