Announcement

Collapse
No announcement yet.

Help me align this cubes, please!

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

    Help me align this cubes, please!

    I'm having trouble aligning these snapping cubes. Does anyone know if there are nodes in BP that help with stuff like this? Does anyone know an equation that will help?

    Any discussion on how to start to attempt to solve this would be awesome!!

    vid of my problem: Notice the gap when the cubes snap together.
    https://youtu.be/JpxBuTgmYaA

    #2
    Instead of using Set Location, try Set Location & Rotation, then feed it the "get actor rotation" from the cube next to it, so that it aligns them.
    FPS Game Starter Kit
    Retro Game Starter Kit
    Quiz Game Starter Kit
    Twin Stick Game Starter Kit

    Comment


      #3
      Originally posted by SB1985 View Post
      feed it the "get actor rotation" from the cube next to it, so that it aligns them.
      Hey SB1985,

      The AXIS orientation is different. if I use 'Get Actor Rotation', the attaching cube (held cube) will spin around to match its axis orientation to the target cube. I would like to adjust the attaching cube so that it keeps its current orientation while making itself parallel. In this case the Z axis has to align to the X axis
      Last edited by NfrancisJ; 08-04-2019, 06:12 PM.

      Comment


        #4
        I see, maybe try something like this https://www.youtube.com/watch?v=H8DI0I0L54U
        FPS Game Starter Kit
        Retro Game Starter Kit
        Quiz Game Starter Kit
        Twin Stick Game Starter Kit

        Comment


          #5
          I tried that already. The issue with that is that the Target object is not sitting on the grid. Would be cool if I can define my own grid space, but not sure how to do that. XD

          Attached Files
          Last edited by NfrancisJ; 08-04-2019, 07:11 PM.

          Comment


            #6
            Solved!

            I found that rounding the rotation values to the nearest 90 deg worked.
            https://youtu.be/yQlEk_RUNW4
            Last edited by NfrancisJ; 08-04-2019, 11:11 PM.

            Comment

            Working...
            X