Hello everyone, I am working on a way to place foliage at run-time, everything is going fine, but I can’t seem to get my meshes to align to the slope/normal of the floor underneath it. I am doing a line trace from where the mesh is, to underneath the mesh, but nothing I’ve tried has worked. I am looking for a way to get the rotation at which the mesh should be rotated to to be aligned with the floor. I’ve done tons of searching on the forums and Answer-hub, and all I’ve seen is one solution for aligning a hovercraft, which doesn’t really help me because I do not use torque, I use rotation.
If anyone can help, that would be great!