This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
(if my raycast hits an object, that Object becomes the result.collider)
I already know that my result.collider contains an object, I just want to be able to display what class that object belongs too:
elif result.collider is Door:
print("This object is a " result.collider.class_name)
so obviously "result.collider.class_name" should be "Door"..
result.collider.name works btw, it just says "Door".
but 'class_name' doesn't work
any ideas what it is (not class_name?)
can't see it in docs, and also not getting a prompt to what it could be either.
Post Details
- Posted
- 9 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/godot/comme...