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"

Setting new rotation with delay without rInterp?

Hi! RInterp looks cool for many uses but it doesn't fit my needs. I would like to have an actor mimmic the same exact rotation of my Oculus-Rift, but with a delay (latency may be a better word). So when the HMD rotates 90*, I want the actor to stay right in place for 1 second and then rotate 90* with the same speed as the HMD did.

Would that be possible with Blueprints only?

alt text

Product Version: UE 4.12
Tags:
more ▼

asked Aug 10 '16 at 08:55 PM in Blueprint Scripting

avatar image

bnjmndsgn
3 1 6

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

1 answer: sort voted first

You can just record all rotation values on tick and when array length hit some known threshold (let's say for 60 times per sec, delay/tick is set to 0.1666 which after 5 sec would produce array length 300) you would start removing elements from beginning of array and add to end. So you can always get to the past values just by getting required index.

If you using c++ there are some smart Queue like data types which im not experienced enought to talk about.

more ▼

answered Aug 11 '16 at 07:15 PM

avatar image

CriErr
1.2k 56 19 55

avatar image bnjmndsgn Aug 11 '16 at 09:04 PM

Thanks alot for explaining! This works perfectly. Arrays are still new to me, but doesn't it matter that it just keeps running indefinitely like this?

alt text

avatar image CriErr Aug 12 '16 at 08:18 AM

It would consume a lot of memory, also this one woud spam log for first 30 ticks about array out of bounds.

(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