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"

Hex Grid Snap In Game

Anyone know of a way to build a grid in-game that works for hexes?

The current way I have I created using '3 Prong Gaming's RTS tutorial.

It works fine for a normal square grid, but i'm working with hexes here....alt text

Product Version: UE 4.21
Tags:
help.png (117.3 kB)
more ▼

asked Mar 28 '19 at 01:33 PM in Using UE4

avatar image

Joetee
1 1 4 7

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

1 answer: sort voted first

Hexas work in a totally different way. A Google search could have saved you some time, as it has been discussed already a million times.

You have numerous possibilities, here is a great collection of grids you can work with: https://www.redblobgames.com/grids/hexagons/

more ▼

answered Mar 28 '19 at 01:36 PM

avatar image

KristofMorva
1.1k 4 5 7

avatar image Joetee Mar 28 '19 at 02:45 PM

I have googled, and yes I realise that its been discussed alot. But I can't seem to find a way of actually building it in Unreal. As for that website, i've already seen it, and as far as I can tell, it just tells me how Hexes work. Which I already knew.

avatar image KristofMorva Mar 28 '19 at 02:55 PM

What blocks you from building it in Unreal? I guess you're creating meshes or actors for your square grid, and you spawn them to locations based on X, Y (using Grid Snap). Now as for hexas, you spawn them the same way, except that you can't use "snapping" like that, as every odd row is shifted, so you have to calculate the location of a hexa tile yourself, for which the method is described in blog posts, just like the one I have linked.

(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