Painted Grass to follow Cubes rotation?

Hello, i have made a rotating cube static mesh with a class blueprint. I wanted to add my grass static meshes with the paint tool, however it wouldn’t let me paint them onto a movable mesh, so i would make the mesh static and then paint the grass and switch it back to movable. However now when i play my game, the cube rotates, but the grass doesnt follow the cube.
Heres an example of what i mean.

I have tried with a different static meshed just placed (not painted) and made the cube its parent, both meshes rotated however was very off and inaccurate rotation.

I wanted to know if this is possible? that i can have painted grass follow the meshes rotation?

Thanks alot.

Hi Lawrie,

The foliage tool does not have movable objects. This is why it would not let you paint on the movable object. Even with the workaround to paint on it, as soon as you changed the box from static back to movable it detached the foliage from your box.

You can place the grass meshes on your box manually and list them as movable to achieve this action though.

Let me know if you have any other questions. :slight_smile:

Tim

Thanks for your response.

I do wonder, would anyone know at all if the ability to have movable foliage that was painted and not dragged and dropped might be a possibility in the future? that is if it is even a possible thing to do in the first place?. If not, then might you know of a way i could do this? could i do the process all in UE4 or would i have to make it in an external program?

Thanks alot for you help.

This is something that may be added in the future, if it’s possible. This is probably a result of how foliage is handled within the editor.

You can however, use a couple of different ways to get the same result.

The easiest way, since you have your cube set up in a blueprint anyway, is to add the single grass mesh to your BP and copy and past it a few times. Make a cluster then copy and paste that cluster a few times to move multiple around to cover your cube face. With this parented by the cube it’ll take on the properties and rotate with it. You can see from my image below how I set this up.

Alternatively you could use the technique we used in the Blueprints Office example from Marketplace and use that for your cubes face for randomization of the grass. [The BP layout is included in this document.][2]

Let me know if you’re still having trouble and I’ll help you further. :slight_smile:

Tim