Sorry about the maybe somewhat confusing title, but quite frankly I wasn't entirely sure what to name it.
So I'll get right to the point; I'm trying to create a block-based building system. Yes, similar to what games like Minecraft, Robocraft and similar games do it. However, my vision is for it to be more similar to that of Robocraft, where the landscape itself will be a regular terrain and not a box/voxel-built one.
So far, I've made 2 models for prototyping, a regular box and a sloped box. Currently, I'm stuck at trying to spawn them into the level. I've started with a blank project and have set the most common stuff up, and I've also made it so whenever "Build Mode" is active, it will do a line trace every tick - getting the location where the player is looking at.
Now my questions are:
1. How do I spawn my static meshes where I am currently pointing my cursor? And what would be the best approach to get proper alignment? So the blocks will snap together? I thought about maybe using Sockets, but then I Would have to make them Skeletal Meshes and I sincerely doubt this is an optimal way of doing things.
2. How would this affect lighting? Will lighting automatically be handled for actors that are spawned after playing has begun?
Edit:
I managed to figure out how to spawn it into the level where I'm looking. So that's that done. Now there's just the snapping left... :P
So I'll get right to the point; I'm trying to create a block-based building system. Yes, similar to what games like Minecraft, Robocraft and similar games do it. However, my vision is for it to be more similar to that of Robocraft, where the landscape itself will be a regular terrain and not a box/voxel-built one.
So far, I've made 2 models for prototyping, a regular box and a sloped box. Currently, I'm stuck at trying to spawn them into the level. I've started with a blank project and have set the most common stuff up, and I've also made it so whenever "Build Mode" is active, it will do a line trace every tick - getting the location where the player is looking at.
Now my questions are:
1. How do I spawn my static meshes where I am currently pointing my cursor? And what would be the best approach to get proper alignment? So the blocks will snap together? I thought about maybe using Sockets, but then I Would have to make them Skeletal Meshes and I sincerely doubt this is an optimal way of doing things.
2. How would this affect lighting? Will lighting automatically be handled for actors that are spawned after playing has begun?
Edit:
I managed to figure out how to spawn it into the level where I'm looking. So that's that done. Now there's just the snapping left... :P
Comment