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"

Move and Rotate with one Axis

Hi there! I want to develop a game similar to Flying preview, but i'm using a skeletal mesh instead of a static mesh as character.

I want to move and rotate my ship with one gamepad (the left one for example). I tryed any scripts, but they didn't work. I also tryed Sequence (as you can see in the photo) but still pretty buggy. Can you help me? Thank you! :)alt text

Product Version: UE 4.9
more ▼

asked Sep 03 '15 at 08:37 PM in Blueprint Scripting

avatar image

5 5 4 8

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

1 answer: sort voted first

I cant see your picture but "Set control rotation" will just rotate the "aim" of the camera.

You probably want to use addLocalRotation or setLocalRotation or a similar node on a tick with a branch before it setup to a boolean variable that you can turn on an off with a key/event etc.

If this cleared it up for you dont forget to accept an answer so people can find the answer they needed when searching/googleing later.

A bigger pic will help.

more ▼

answered Sep 03 '15 at 09:27 PM

avatar image

1.8k 67 27 137

avatar image Rawcode Sep 03 '15 at 10:10 PM

I'll try your suggestion as soon as i can! Here the link for a larger imagelink text

avatar image Nsomnia Sep 03 '15 at 10:22 PM

Dont forget for a spaceship move forward will become moveright and moveright willbecome moveforward when you rotae 180degrees since Y/X doesnt change, add in Z and it becomes even more complicated so you have alot of checking to do.

Something like addLocalOffset(GetForwardVector) for both of them comes to mind a simple solution with the axis value multiplied by around 1-10x (you could even make it a varaible to change the speed).

(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