I’ve got the angle from my player relative to the surface using this code
var groundAngle:float;
var hit:WheelHit;
if(wCollider.GetGroundHit(hit))
{
groundAngle = Vector3.Angle(hit.normal,transform.up);
}
But how do I get the angle only in the local x axis. In other words I don’t wanna know the grounds angle relative to the gameobjects z axis only in it’s x axis