x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Bug or is it normal? Using SetRelativeLocation

I don't know if it is normal, but when i use SetRelativeLocation in Blueprints with a timeline, then i get a strange result.

I've made a simple trap with two walls. If you go into the trigger, the two walls are moving to the middle and you die. In my blueprint i have a Scene component and the two walls. Over the timeline i drive the Alpha for the Location to lerp from the starting Location to the end Location.

Als works as expected with one Problem: the two walls are moving to fast. I set the time for the Alpha to 2.5 seconds. But the new locationo is reached after a half second. Only if i set the time to over 10 seconds then it moving slower.

Is this behaviour normal like? Or is it a bug? It doesn't matter if i use WorldLocation or RelativeLocation. Oh...one Point: For the end Location it is only too fast if i use the start Location minus the way wich it should move. If i plug in the start Location into the lerp and type into the second Input the way, then it works fine. But with another Problem. If the wall should move 180 Units (?) along the x axis, then i have to type a value of 0.12. If i type 180, then the wall move more then 1000 or more.

Product Version: UE 4.18
Tags:
more ▼

asked Nov 16 '17 at 12:21 PM in Bug Reports

avatar image

Beregron
318 8 13 19

avatar image Xelj Nov 16 '17 at 02:34 PM

Your start and end location is static value, or you get it as GetRelativeLocation and some math actions during timeline?

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

I get the current Location and try to lerp that. With doors in f.e. Version 4.10 all works fine. Maybe i missed something? Or i think in the wrong way?

alt text

trap.png (333.6 kB)
more ▼

answered Nov 16 '17 at 06:36 PM

avatar image

Beregron
318 8 13 19

(comments are locked)
10|2000 characters needed characters left

In your version, the incoming values for lerp change each tick of the timeline.Try this: alt text

1.png (133.8 kB)
more ▼

answered Nov 17 '17 at 01:22 PM

avatar image

Xelj
291 2 4 7

(comments are locked)
10|2000 characters needed characters left

I will try this. I forgot: I have to set the Location at the constructor. I fell dump now. But i think this work.

more ▼

answered Nov 17 '17 at 02:50 PM

avatar image

Beregron
318 8 13 19

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question