Hydra Posted January 14, 2022 Share Posted January 14, 2022 Is there any way to check a respective surface? Like if getTerrainSurface() == "grass" or something. Link to comment
DiSaMe Posted January 14, 2022 Share 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 Link to comment
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