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 Static Mesh Roll/Tilt (Aircraft Barrel Roll)?

Hi everyone,

I have tried to make the mesh of my player controller (a spaceship) roll to varying degrees as a turning mechanic (and hopefully create a barrel roll mechanic in the future)

I have noticed in the flying sample project, the ship moves by aiming its nose and doesn't really roll/tilt like an aircraft should?

I have tried to add the Add Roll node to my player controller but it also rolls the camera, which I do not want. I have tried to add the static mesh instead of player controller, but the nodes aren't compatible.

Does anyone know how to make the static mesh roll without the camera? I was hoping not having to do any clamping.

Thanks in advance.

Product Version: Not Selected
Tags:
more ▼

asked Nov 13 '14 at 04:51 PM in Blueprint Scripting

avatar image

Zatoi
10 5 8 9

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

1 answer: sort voted first

Go into Components and attach a Spring Arm to root, and then attach the camera to the Spring Arm.

Now you can rotate the mesh and the camera (you can move the Spring Arm and/or the camera itself) separately or together, and just generally have more control over the camera/mesh relationship.

more ▼

answered Nov 13 '14 at 05:28 PM

avatar image

DG Gage
1.7k 62 31 129

avatar image Zatoi Nov 13 '14 at 05:42 PM

Thanks for such a fast reply,

Do you know how the blueprint format would be for rotate the mesh separately with the camera? I already have the spring arm component w/ camera inside my ROOT, but I have been still struggling with this part of the problem.

Thank you

avatar image DG Gage Nov 13 '14 at 05:45 PM

Whenever you are setting your rotation, you'll want to plug in the rotating component into the Target slot of the node. Your components will appear on the left by the variables when you're in your event graph.

Feel free to send some pictures of your setup if you're still having trouble. Components and Event Graph would be helpful.

avatar image Zatoi Nov 13 '14 at 06:07 PM

Thanks for your help, here is a picture, I can't seem to get the mesh to rotate independently of the pawn, even with camera spring.

starshiproll.png (947.9 kB)
avatar image Adam Davis STAFF Nov 13 '14 at 06:17 PM

Hi Zatoi,

Instead of creating the rotation node first, try dragging off of the static mesh component in question and then type in rotation. This should produce a context sensitive menu specifically for that variable.

avatar image Zatoi Nov 13 '14 at 06:29 PM

This fixed it, thanks a lot. Next step for me is to plug it into make rot and a lerp to make the transition smooth.

(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