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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Rotate Player on Roll Axis

I want to roll my controlled character on the roll axis while its in mid air, i know how to activate it only in mid air but I do not know how to rotate the character smoothly on the roll axis, i have it set so that Q and E are the Rotate controls. Q is scaled to -1 and e is scaled to +1.

Product Version: UE 4.20
Tags:
more ▼

asked Jan 02 '19 at 09:50 PM in Blueprint Scripting

avatar image

Logz 123
1 1 2

avatar image Evigmae Jan 02 '19 at 10:13 PM

What's your current input setup?

avatar image Logz 123 Jan 02 '19 at 11:43 PM

alt text

This is my current Input Setup

capture.png (186.3 kB)
avatar image Evigmae Jan 03 '19 at 12:40 AM

What sort of roll you do need? Like a plane that tilts a bit and goes back? A full barrel roll maybe? Or do you need to just Add roll and leave it there?

avatar image Evigmae Jan 03 '19 at 12:42 AM

Because adding Roll is super easy.

alt text

1.png (42.1 kB)
avatar image Logz 123 Jan 03 '19 at 01:48 AM

Ok so i figured out how to rotate the character but I want it to Revert back to being 90* when the player hits the ground

avatar image Evigmae Jan 03 '19 at 01:51 AM

you mean 0°?

Player is only meant to be able to rotate the character in the air?

Because you can check if character "MovementComponent > isFalling" meaning is not touching the ground, and only let it roll then.

But without knowing what are you doing, is pretty hard to give you an easy answer.

avatar image Logz 123 Jan 03 '19 at 01:53 AM

Yea, I mean 0

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

1 answer: sort voted first

Not sure if this is the type of Roll you need...

This tilts it up to 90° and then returns if if you release the input.

alt text

0.png (148.1 kB)
more ▼

answered Jan 03 '19 at 12:41 AM

avatar image

Evigmae
1.7k 8 3 8

(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