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. 

How do I stabilize a pawn's rotation horizontally?

How to stabilize pawn rotation horizontally? I want that my pawn is stabilized parallel to ground plane when no rotation button is pressed. How to achieve this with the blueprint?

Product Version: Not Selected
more ▼

asked Apr 28 '14 at 09:44 PM in Blueprint Scripting

avatar image

36 5 8 9

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

2 answers: sort voted first

Under your Static Mesh within the Blueprint. Look for Physics, under this you will see Linear Damping and Angular Damping. See if those give you the desired affect.

more ▼

answered Apr 29 '14 at 01:04 AM

avatar image

2.1k 75 37 111

avatar image Vertal Apr 29 '14 at 01:14 AM

Those parameters change only rotation & move speed...

avatar image PeterLNewton Apr 29 '14 at 02:33 AM

Another way is to clamp and RInterp the rotation. I used this previously before attempting the solution above. I rather not have an outside source interfering with the rotation if I could have the settings do that for me

avatar image Vertal Apr 29 '14 at 10:55 AM

Could you explain it more "accesible language" for noob in blueprints? For example which nodes i need connect to my pawns rotation node? Screen of the graph would be perfect =))

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

The Flying template does that to stabilize the UFO's roll angle while you're not using input. In the BP_Plane look for the part that uses the MoveRight input (or something like that). It first calculates the yaw speed to be applied and then it calculates a roll angle based on the yaw speed. If you're not using the input (meaning MoveRight will give you 0) it calculates an inverted roll speed to make the plane rotate in the opposite direction as it would with your input. Which means it automatically stabilizes itself when you're not using input. In the BP that's the part under the ">" test (I can't give you screenshots etc right now because i'm at work sorry).

Also keep in mind that this calculates a rotation speed which adds to the current rotation in the Tick event. Which means that speed adds an angle every frame.

more ▼

answered Apr 29 '14 at 11:06 AM

avatar image

151 7 12 23

avatar image PeterLNewton Apr 29 '14 at 11:16 AM

The screenshot GregBlast has mentioned is here. As he suggested, I would also advise reviewing this Project to really understand what is going on. By using the axis input to control the turn speed, the roll direction is updated every frame. So rather then something fixed, this results in requiring constant input to continue the roll. So when the axis input drops to 0, meaning its not getting input. The roll zeros out to and balances the ship.

alt text

(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