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.
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.
Subreddit
Post Details
- Posted
- 6 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/godot/comme...