Angle on local X axis (pitch)
I would need to get the angle on the local axis of a 3D model in space.
I have two raycast collision 3D points, one on front , one on rear , how can i have the pitch of those two raycast ?
How to rotate a 3D object to that absolute pitch on it's YZ local plane ?
I read some tutorials but i didn't figured out to combine some code snippets to get it work.