restrict lookat axis for trees on a hill - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html) +--- Thread: restrict lookat axis for trees on a hill (/thread-3984.html) |
restrict lookat axis for trees on a hill - tycera - 11-17-2023 How do I have tree plane objects distributed on a hill rotate only on their local Z axis to look in the direction of a point? RE: restrict lookat axis for trees on a hill - tyFlow - 11-17-2023 Make sure you set the proper forward vector in the Rotation operator look-at settings. RE: restrict lookat axis for trees on a hill - tycera - 11-17-2023 Thanks. I played around with it but couldn't work out which setting I should be using. My lookat object is a simple point. Wait. "From World" set to 1.0 seems to work, but the particles are also changing position for some reason and depending on their location that leaves them half-buried in the hill. Ok, I think I'm getting the result I wanted, but I had to rotate Z -90 in the Rotation->Orientation settings. RE: restrict lookat axis for trees on a hill - tyFlow - 11-17-2023 See attached. RE: restrict lookat axis for trees on a hill - tycera - 11-17-2023 Thanks, I appreciate the help. Unfortunately I'm on max 2020. RE: restrict lookat axis for trees on a hill - tyFlow - 11-17-2023 Here's a 2020 version: RE: restrict lookat axis for trees on a hill - tycera - 11-17-2023 Thank you! I'm getting a strange result here though. Is the attached image how it's meant to be? The trees are aligned to the surface normals, not vertical world z. RE: restrict lookat axis for trees on a hill - tyFlow - 11-17-2023 I thought you wanted them to be aligned to the surface as well. If not just set forward axis to world (0,0,1). RE: restrict lookat axis for trees on a hill - tycera - 11-17-2023 Thanks. That's what I did to get the result. Although I still can't figure out why I had to rotate them -90 on Z. I wasn't aware of the Move Pivots operator. That's really useful. Thanks again for the help! |