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"

Joystick Rotation and Control

I am working on a project and having difficulty figuring out how to implement what should be a simple functionality into controlling the player (an arcade style tank, static mesh).

The sample projects have good examples on getting the player character to face the direction that the joystick is pointing (or pressed) and also move in that direction as a forward motion.

What I want to implement into my project is a slower rotation that depends on the direction of the joystick. The examples rotate the character to face that direction instantly. That is my problem. I want the player to rotate at a set rate towards the direction that the joystick is oriented.

Example: If the player character is facing right and the joystick is moved to the left, I want the player character to take some time to rotate to facing left (about 2 seconds or so).

I also want the player character to move forward in local coordinates instead of world coordinates based on the distance from the resting position that the joystick is oriented. Direction shouldn't matter as they will be turning as they move as well anyway.

Is this possible with blueprints specifically?

Product Version: UE 4.12
Tags:
more ▼

asked Jun 19 '16 at 07:11 AM in Blueprint Scripting

avatar image

ZalausaiUDK
6 1 2 4

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

0 answers: sort voted first
Be the first one to answer this question
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