Getting Mesh Data from a Raycast
Asked Answered
U

1

0

Hi all!

Just wondering, is there a way to get mesh data from a raycast(3D)?
I heard there are 8uv channels now and maybe some extra data channels. I'd love to know how to use them but I haven't been able to find any info on how you'd do it.

Anyone know if there's a way?
Thanks!
Pete

Ursala answered 23/11, 2023 at 8:29 Comment(0)
T
0

To get mesh data from a raycast, you need to know where the MeshInstance lives in relation to the static or rigid body that your raycast collided with. Just get that node via relative path from the body, then get the mesh from that node

Touchstone answered 23/11, 2023 at 18:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.