Hydra Posted January 14, 2022 Posted January 14, 2022 Is there any way to check a respective surface? Like if getTerrainSurface() == "grass" or something. Social Media: Discord: Gabriel45#6859 Instagram: https://www.instagram.com/_gabriel_455/ YouTube: Hydra45 (https://www.youtube.com/c/Hydra45/)
DiSaMe Posted January 14, 2022 Posted January 14, 2022 You can do that using processLineOfSight function. You cast a ray between two points and it will return information about the surface that it hits, including the material ID. 1 -
Hydra Posted January 14, 2022 Author Posted January 14, 2022 thank you! Social Media: Discord: Gabriel45#6859 Instagram: https://www.instagram.com/_gabriel_455/ YouTube: Hydra45 (https://www.youtube.com/c/Hydra45/)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now