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.
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:
Might be enough what you need but it’s hard to tell what it is, atm.