I have a ramp with an incline that is controlled by a slider. On top of the ramp, I hope to be able to add different objects that will always sit on top of the ramp regardless of the incline.
I am using getBoundingInfo().boundingBox.maximumWorld.y to get the objects to change position with the ramp but they are above the ramp. I am sure there is a better way of doing this.
Hello,
If @bghgary’s suggestion doesn’t suit you, you can try ray cast to find the mesh starting point on the ramp based on the x, z initial position of your mesh.
Thank you @bghgary and @LeJohn for your help! @LeJohn’s solution with ray casting is perfect and helps with some other things I want to play around with.