Bug passing and identifying custom class in Godot 4b1 on macOS? #5506
Locked
Gatada
started this conversation in
Engine Core
Replies: 1 comment
-
This is not the place to report (potential) bugs. Use https://github.com/godotengine/godot's issue tracker instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am seeing unexpected behaviour when trying to filter a node based on class.
Let's say the idea is for the Iron Giant to only consume instances of
Vehicle
.This is the
Vehicle
class I created:Now, to identify the nodes that are instances of Vehicle, so I can "consume" them. After having identified the
body
as aVehicle
I even pass it as such - to ensure the recipient gets the required type:So here the class "consumed" is RigidBody3D:
Though like this - it returns Vehicle:
I did not expect this to happen? By passing a
Vehicle
the class is received as aRigidBody3D
? I would maybe accept the other way around, but even that should be prevented - as the instance is passes as aVehicle
.Is this a bug in Godot 4b1?
Beta Was this translation helpful? Give feedback.
All reactions