I'm sure there's a better way to articulate this question, but I lack the vocabulary.
Imagine a skateboard. As it rolls straight down a road, the "deck" is aligned with the road, just offset a few inches higher.
If the skateboard is on a ramp with an incline of say 20º, then then deck of the skateboard can be aligned with the ramp by rotating along it's x-axis by 20º.
But what if the skateboard approaches the ramp at an angle?
Perhaps a visual explanation might be easier to understand.
If I know the points at the top of each pink/purple pole, and I wanted to place an object in the scene that aligned with those points, like this...
Is there some known method for figuring this out?
I'm using Unity, if that makes a difference?