My asset, when acted upon in game, moves location - sliding door?

Hi all, first time poster and here to try and learn. I have been using Unreal since last summer and whilst generally I can create an environment I am trying to follow tutorials from here and youtube to make them more interactive.

I have searched and can’t find a fix - despite trying a few that will stop my sliding door slightly moving position from where it is placed in the viewer. I have moved the pivot point to a corner, I have enabled CCD, I added a simple box collider but nothing seems to work. Any help appreciated. I have a video, but it won’t let me upload so here is a link to my youtube.

Hello, and…

I have absolutely no idea what this means.

However, after looking at the video multiple times, it’s likely that your BLUEPRINT is either:

  1. Using the incorrect transformation. (You may be using the WORLD transformation instead of the LOCAL or vice-versa)

or

  1. You did not put the correct coordinates.

or

  1. You are moving the wrong component or the component is not in the correct place.

You need to expose your Blueprint for us to be sure.

2 Likes

You need to save the door’s relative location before the timeline to a variable. Then get the variables value inside of the timeline (during update and add the float to the specific axis you are animating).

Otherwise you are in a way resetting the doors position if you do not feed it’s start offset to the transform.

Edit: fixed overlap swapped from door to outer collision

Video

1 Like

Thank you both. I am not currently at a computer with Unreal Engine but will try DoorColl’s suggestion. Really appreciate it. :slight_smile:

The video is just named DoorCol as in Door Collider. It’s own YT channel :wink:

1 Like

Ha! The way the page was with the video it was right next to your avatar XD

Ok, now trying the fix. However, I am that noob, without a video blueprint I’m struggling to find some of the new coding.

What do I search for to apply: Top right Event begin play - Target and set < I don’t know these.

Also from Set Relative location coords, how do I find that yellow coords box please? :slight_smile:

The start location is a vector. You can drag it out in to the event manager once it is created and the right click its output and split it into it’s X,Y,Z components.

Here is a simplified version of the project. You can copy over the door.uasset into your project if you want to
DoorProject.zip (67.3 KB)

Hey dude, sorry for the late reply. Work and holidays. I tried the fix and found the necessary code but it still didn’t work. I even tried to copy your asset but there was an error that I didn’t know how to fix.

But, I decided to make a new level, use the original code that I tried and it worked. I reopened my level and it worked. FML. XD

Anyway, appreciate you taking time out to reply to try and help. <3