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"

Rotate the object with the touch

Hi

How to rotate an object by touching the left and right direction? alt text

UE 4.8.0 Android

Rotating like:Traffic Racer alt text

Product Version: UE 4.8
Tags:
more ▼

asked Sep 11 '15 at 12:14 PM in Using UE4

avatar image

Hamedudk
0 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

please help

more ▼

answered Sep 12 '15 at 02:52 PM

avatar image

Hamedudk
0 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Do you want a constant rotation or just as long as the right arrow is held down rotate?

I would try a while loop. While the button is down set boolean to yes which activates a true for a branch. From there do some sort of get rotation and add .5 rotation degrees (this would be the speed I believe). Once the finger is lifted the branch turns false and thus stops rotating. I'm not at my UE4 laptop so I cant be super specific, but that is the general logic I would use.

Let me know if that works.

Good luck.

more ▼

answered Oct 22 '15 at 09:55 PM

avatar image

Mattboyguy
33 6 11 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi! It seems I've gotten an answer. sorry for the really late response, I've only come across this question now, while I was facing the same problem (Although it may not be useful to you by now, hopefully to some other people it'll come across useful!).

alt text

So what basically happens between each tick is that it calculates the amount the touch input's moved from the previous tick and added it into the rotation. Hope it helps!

captureans.png (278.8 kB)
captureans.png (278.8 kB)
more ▼

answered Oct 08 '17 at 02:34 PM

avatar image

WoodRawr
1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
more ▼

answered Aug 26 '18 at 03:10 PM

avatar image

cool77
6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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