I’m trying to align a model via a normal.
I want the car model to be inclined with the slope.
I’m firing a raycast below the car and I’m getting the normal, but I can’t figure out how to align the car using that normal.
I tried implementing this script:
But im getting a few NaNs in the Mat4 returned from setMat4Forward.