Hi! I want to rotate meshes by 30–60 degrees in the opposite direction of the box trace hit.
How can I do that?
I want to create a kind of grass bending effect after I step on it
Hello @WDRK23 ,
I have a question about what you’re trying to do. Do you want a mesh, in this case the cube, to rotate in a certain direction (for example 30 or 60 degrees) and then stay in that position, or return back to normal afterward?
Also, does it matter if the cube clips through the floor while rotating?
Another question: do you want it to rotate 30/60 degrees depending on where the player is looking from, or should it always rotate to the same side?
And if you can think of any other important detail, feel free to mention it as well.
Also, I’m asking because maybe you’re trying to make something like grass. If that’s the case, I think you’d probably need to do it in a material.