Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

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.

2
collider.class_name?
Post Body

(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.

Author
Account Strength
90%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
6,007
Link Karma
680
Comment Karma
5,317
Profile updated: 3 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 months ago