|Topic was automatically imported from the old Question2Answer platform.
The idea is to create a function that calculates the percentage of a raycast’s length before it collides with a surface and prints the result. This will need to be updated every physics frame.
I’ve looked into tutorials covering similar effects but since this is my first attempt at learning scripting I am still confused on how to approach this. Any help is greatly appreciated.