My Dungeon Maker is instancing Doors on marked Edges of the map mesh (a Plane, with some edges marked with Attribute “Entrance” Edge-Boolean")
I can make the basic geometry, deleting walls where the Entrances are.
I can Instance on Points a Door object on the Named Attribute Edge, but I need to rotate it so it faces the right way!
How to be doing the thing?
I think I need an Align Vector to Euler, but can’t see what to feed into it?
Hi,
That is correct! Before converting the edges to points, make sure to capture the edge direction aswell (Position 1 - Position 2 of the Edge Vertices). You can use that in combination with the Aling Rotation to Euler node to align the X-Axis (or any other) of your door to that direction:
You maybe need to rotate some doors by 180° as the Edge Vertices are not always sorted in the way you might expect them to be.
Good luck!
Excellent!
That seems to work!
I did try something similar, but I’ve been struggling to get the right settings
My “Capture Attribute” must be an older version (3.6.8) , and has to have “Vector → Edge”
Yeah, they changed it in 4.2 i believe. It’s basically the same thing but now it allows you to capture several attributes at once with just a single node!