Change Angles of Cube

Hey everyone

I am working on a project where I, at the press of a button, can spawn a cube. The shape and size of the cube is determined by some external data that is imported through a server. My question is, how am I able to change the angles of the cube when it is spawned? I am able to scale the cube to the right size when it is spawned, but i cannot seem to find any function that changes the cube’s angles.
It should be fairly easy as it is a simple task, but i cannot seem to find anything. The angles are provided in degrees.

Ps. I use blueprints and the cube mesh is UE4’s own Cube.

Depending on how things are set up and whether relative / absolute rotations need accounting for, it could be as simple as:

Or you’re unsure how to translate degrees into a Rotator?

change the angles of the cube

You may need to clarify what that really means. In 3d you’d need an angle per axis. Namely:

346702-screenshot-4.png

So basically I am not talking about the rotation of a cube. I am talking about having a cube that is not 90 degrees in all corners. In other words, an non-orthorhobic cube. Like a diamond shape for example.

If you load a static mesh, that’s what you get. It’s static - it’s in the name. You can scale an axis, ofc, but that’s it. You could deform it with a spline mesh component providing the topology is dense enough.

Apart from that, if we’re talking about pure data, you can use [procedural meshes][1] to construct any 2d shape / 3d volume. Once you learn how to make triangles, you can make anything.

Also, materials can do this:

347031-screenshot-3.png

Might be enough what you need but it’s hard to tell what it is, atm.

Good luck!

Oh, and look into how Brush Editing works:

Once the vertices are edited, these can be turned into static meshes from within the editor.