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"

How to make character turn to face direction for floating pawn movement?

I am using floating pawn movement to allow my character to fly. However, the character does not turn to face the direction of movement when flying in this manner. How can I implement a way for my character to turn to face direction of movement for floating pawn movement?

Product Version: UE 4.20
Tags:
more ▼

asked Jan 08 '19 at 03:11 AM in Blueprint Scripting

avatar image

StipendAwarded
1 1 5

avatar image the_batch Jan 08 '19 at 05:51 PM

Just to be clear, you want the pawn's movement direction to determine which way the pawn is facing, and not use player input (such as mouse or gamepad stick input) to allow the player to look around?

avatar image StipendAwarded Jan 09 '19 at 12:43 AM

Basically, I want it to be like the "Orient Rotation To Movement" found on the default Character Movement, but for the Floating Pawn Movement. The player should be able to pan around like in the default Character Movement, but when the character moves around in flight mode (Floating Pawn Movement) he should turn to face the direction of movement input.

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

2 answers: sort voted first

Check out this thread and the 4.18 version of the project. It has a flying ship with floating pawn movement component.

more ▼

answered Jan 11 '19 at 12:34 AM

avatar image

Jacky
16.6k 671 166 674

avatar image StipendAwarded Jan 11 '19 at 03:24 AM

I know how to call Floating Pawn Movement. What I am trying to do is implement a system in Floating Pawn Movement similar to "Orient Rotation to Movement" found in the default Character Movement. While I could just check for Controller Rotation Yaw, I want the player to be able to pan around the character while in flight, which cannot happen if I checked for yaw.

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

You mean like this?

https://youtu.be/AuHsREFCJLk

more ▼

answered Jan 08 '19 at 06:23 PM

avatar image

Nebula Games Inc
4k 22 9 14

avatar image StipendAwarded Jan 09 '19 at 12:26 AM

Here is a picture of my blueprint.alt text

avatar image StipendAwarded Jan 10 '19 at 12:36 AM

Also, I tried implementing your solution into mine, and it did not work. Remember, I am basing it off the Character template, not starting from scratch with a Pawn.

avatar image Nebula Games Inc Jan 10 '19 at 01:02 AM

Pretty sure that's a box you check in the character BP it comes inherent with that

avatar image StipendAwarded Jan 10 '19 at 01:12 AM

Did you look at the picture I posted?

avatar image StipendAwarded Jan 10 '19 at 01:54 AM

Floating Pawn Movement does not have a "Orient Rotation To Movement" checkbox unlike Character Movement.

While I could simply just check for Controller Rotation Yaw, I want the player to have the ability to pan around the character without rotating.

avatar image Nebula Games Inc Jan 10 '19 at 02:22 AM

No sorry, was responding from phone. I will take a look later and see if I can help

avatar image StipendAwarded Jan 11 '19 at 12:13 AM

Response?

avatar image Nebula Games Inc Jan 11 '19 at 12:36 AM

Yo...it's not even been 24 hrs haha I have never used the floating pawn movement before so I was messing around with it. And I ended up creating a pawn BP because I wanted to make sure nothing used character movement which I am almost positive the "movement input" nodes are using. So I was trying to isolate just floating pawn movement since you can't remove character movement from the character BP due to inheritance it is hard to tell you if you are even using the right movement component under the hood when in a character BP. But that's where I stopped. So I may try later but at the moment no easy fix sorry.

(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