I am going to make a function that simply returns the point on a plane at which a line intercepts.
It seems to me like basically a mathf function almost so a good canidate for static.
thoughts? Not sure how bad global functions are considered.
I am going to make a function that simply returns the point on a plane at which a line intercepts.
It seems to me like basically a mathf function almost so a good canidate for static.
thoughts? Not sure how bad global functions are considered.
If you need it in multiple script I think static function is a good idea.
Your function is like Math function so, I think your idea is good. Just don’t use static for everything. In some case like this one it’s a good thing to do rather than repeat a code or declared an object to used its public method.