0

I'm using Unreal Engine 5 Blueprints and I am trying to create a door where if the object detects collision, it will move by -5 units along the X axis. Instead, it is moving -1.5 units along the Z axis.

Moving Wall:
    Event Hit
       |
    Move Component To:
        Component ——— Cube

Here’s the visual script:

Code

Anybody know what I might have done wrong and/or how I could fix it. It isn’t coming up with an error, but just isn’t working intendedly.

I have tried changing the value from x = -5 to something else and tried using a vector rather than a manual input.

4
  • Do you have any transformation applied to your object? Like a scale, and a rotation? Commented Jul 29 at 16:13
  • turns out yes I do, is this whats causing the issue? Commented Jul 30 at 6:06
  • Yes, those can alter the result. I have bad news for you - you need to learn the underlying math. Basically, changing the order of the transformation can result in different outcome (perfect example is the Rubic's cube, with different order of rotation, you can mix, or solve the puzzle). Here's a general tutorial for 3D math (one of the first results on google): stunlock.gg/posts/linear_algebra Commented Jul 30 at 7:54
  • I have scale applied, could anyone tell me which section to go to on the link? Commented Aug 1 at 7:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.