Exemplo n.º 1
0
 private void AlignCarWithGround()
 {
     if (Down.IsColliding())
     {
         var n = Down.GetCollisionNormal().Normalized();
         GlobalTransform = GlobalTransform.InterpolateWith(GlobalTransform.LookingAtWithY(n), .1f);
     }
 }