Hey,

I have been trying for days to adjust an tilt angle of a model to an angle of the ground.

That code is working, but the tilt is wrong. Any ideas?

Code:
vec_to_angle(my.tilt, vector(hit.nx, hit.ny, hit.nz));




EDIT: Fixed with ang_for_axis

Last edited by Ayumi; 07/14/17 20:14.