Announcement

Collapse
No announcement yet.

3 Dimension Struct Modify

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    3 Dimension Struct Modify

    Hi Everyone!


    Anyone try's to create 3d struct and modify it via blueprint?
    I realy can't figure it out.
    Let's say I've got 3d struct with boolian, and I create default values for it.

    Now, how can I modify only those singles boolian's in this layers of structs?

    #2
    Better use 1 Dimension and iterate as if it is 3D.

    See:
    Struct[width][height][depth]
    would be
    Struct[(width*height)*depth]

    To set a value:
    Index = (y * width + x) + (z * height)

    OR
    struct[(y * width + x) + (z * height)] = Value

    Comment


      #3
      Thank you very much for answer, I'l try that : )

      PS: I figure out that I can use maps too. Like 3DVector:Bool.
      Last edited by AleksanderDev; 07-19-2019, 07:27 AM.

      Comment

      Working...
      X