#Raycasting to an ArrayMesh

1 messages · Page 1 of 1 (latest)

echo tusk
#

Trying to get a mouse position in 3d by getting where it is on an arraymesh (i.e. the terrain in this case)
however. raycasting returns exactly nothing when pointing at the mesh, am guessing i'm missing something important (or trying to do something the hard way, any and all advice wanted)
(this: https://www.reddit.com/r/godot/comments/s884q0/tycoonstyle_terrain_proof_of_concept/ is roughly my end result, i have the ability to move terrain at will...but doing so with the mouse is proving beyong my coding and googling skill)

toxic adder
#

The raycast will only hit PhysicsBodies with colliders attached, so if your body doesn't have any collision it won't report anything

echo tusk
#

that matches with some of the stuff i wasnt quite getting, is there a nice way to give said arraymesh a collider? what i saw when googling anything to do with collison only turned up very basic options

toxic adder