Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
How to detect mouse click in 3D space w/ Gridmaps
Post Flair (click to view more posts with a particular flair)
Post Body

Do Gridmaps/MeshLibrary only contain the meshes and their associated physic bodies/ colliders? Is there no way of attaching a script to a geometry and using that in the GridMap? Is the only way of detecting where a mouse is clicking via raycast when it comes to GridMaps?

Context:
I've been working on an "isometric" game (but 3D with a rigid orthogonal camera at certain rotations) and I'm trying to determine what/where the user's mouse is clicking. The last couple days I have been playing around with raycast-ing from the camera (which is not very accurate at all) and then I learned that CollisionObject3D's have "an 'input_event' signal that will let you know when it was clicked"!!!? This is wayyy more accurate but I can't seem to access/attach this function to my Gridmap/MeshLibrary. I've tried attaching a script to the root node of the particular scene that contains one of my "tiles" and to the PhysicsBody in my scene (AnimatableBody3D) to emit this info.

https://preview.redd.it/oe6515o2rowc1.png?width=532&format=png&auto=webp&s=1e182a8546454bda7a0069e0603817c6b9b252ab

Author
Account Strength
90%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
482
Link Karma
24
Comment Karma
458
Profile updated: 3 days ago
Posts updated: 5 months 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
6 months ago