x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Place Blocks In A Grid In-Game

Hello. I am having this problem. I have experimented with many different setups, none of them working yet.

My goal: Be in game and place cubes on a grid as in minecraft. My problem: Getting the grid set up.

I already set up a line trace so that the block can be placed anywhere, but I want it to snap to a grid, rounded to 100s (because the blocks are 100 units wide) so is there a way to do this at least semi-simply? I have seen a few posts but couldn't find any with a good well-explained solution. I figure modulus and/or rounding will help here?

Thanks in advance.

Product Version: UE 4.10
Tags:
more ▼

asked Feb 09 '16 at 12:31 AM in Blueprint Scripting

avatar image

JTrocks55
70 6 11 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I'm using a similar system in my project, though I'm only building blocks on a planar grid, meaning I don't build blocks on top of eachother like in Minecraft, but I imagine one could adjust the system to work that way. Looking at my blueprints I don't think there's a really simple way, but I built my system from a tutorial project I found on Youtube, you could download it and see if you can figure out how to use it for your game.

Link to the video.

The download is in the video description.

more ▼

answered Sep 26 '16 at 12:53 PM

avatar image

Raptorcore
56 2 7 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question