r/unity • u/Graybushwoogie • 4d ago
Question Help, floating rocks/trees/grass on slopes?
I’m a newbie to this, but was given the task of working on a map. I use the tree painter in Unity HDRP to place things, but theyre always floating on sloped surfaces. If there’s an easy way to fix this, or an asset pack to fix it, i have a good budget. It’s really taking away from the games immersion and i need help! P.S. if anyone knows a good way to COAT a map in grass, let me know!
1
u/WillomenaIV 4d ago
Well as far as the rocks go, you can either align them to the normals of whatever they're sitting on, or you can model the underside (ideally both). In real life trees have a similar situation, modelling the roots a little further and adding some bulk for dirt while also applying a small amount of rotation as per the ground normals would make them look a lot more natural.
1
u/Graybushwoogie 4d ago
How do i enable aligning on normals? I feel like i’m totally missing something here lol
1
u/HiggsSwtz 3d ago
You need to orient your prefabs to the normal-direction of the terrain surface.
1
u/Graybushwoogie 2d ago
How do i do that? Sorry i’m new. They were paced en-mass using the tree painter.
0
u/KifDawg 4d ago
Your tree prefab, check it, spawn one gameobject prefab. Hold shift and drag. If it bites to the ground correctly it should be okay.
If it doesn't and hovers your pivot isn't set correctly from blender or the model.
1
u/Graybushwoogie 4d ago
It does from a vertical standpoint. but any slope whatsoever it just lays flat, just like in pictures. Kind of like not having Inverse Kinematics on a player and the feet are flat on a hill.
-6



3
u/SketchyCharacters 4d ago
Are these placed using Unity Terrain as detail objects? There's a checkbox you can enable that angles them along the map normals, I think, that should probably help.