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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Character rocket flight

I have been looking around but I cannot seem to be able to figure this out. I am trying to build a jetpack type blueprint with rotation in either paper 2D or the 3D sidescroller. Trying it with a static mesh and a character. This video shows what I made in a different engine http://youtu.be/Hu-hSOzlovo and I am just trying to duplicate it here. Any help would be much appreciated.

Product Version: Not Selected
Tags:
more ▼

asked Nov 21 '14 at 07:50 PM in Blueprint Scripting

avatar image

FatMoth
46 2 5 8

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

1 answer: sort voted first

Hi FatMoth,

Here is the solution that I came up with. It should at least be enough to get you started in the right direction.

I created this from the default SideScroller Template. All blueprints are alterations of the MyCharacter blueprint.

  • I set 3 timers on Event Begin Play.

    • Thrust

    • RotateLeft

    • RotateRight

alt text

  • I make CustomEvents that match the names of the timers to drive the rotation of the player.

alt text

  • Next we get the Actors Rotation and get an Up Vector to drive the thrust. For the Thrust I used an Add Force node because it mimics a rockets thrust fairly well.

alt text

  • I also changed the Character Movement component in the Components tab. I zeroed out the Rotation Rate so the mesh didn't rotate left to right.

  • Cleared the Skeletal Mesh from the Mesh component and added a new Static Mesh Component of a cone as a rocket placeholder.

  • Cleared the Anim Blueprint Generated Class to none.

I hope that helps. If you have any questions just let me know.

Cheers,

TJ

ah_rocket01.jpg (38.1 kB)
ah_rocket02.jpg (114.4 kB)
ah_rocket03.jpg (60.9 kB)
more ▼

answered Nov 25 '14 at 08:32 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

avatar image FatMoth Nov 25 '14 at 09:45 PM

Thank you so much! This will be a huge help.

avatar image TJ V ♦♦ STAFF Nov 25 '14 at 10:05 PM

Here is the blueprint in action. I added the rocket mesh from the Content Examples and a fire particle effect for fun.

https://www.youtube.com/watch?v=w4QPKbsyCJc&feature=youtu.be

avatar image FatMoth Nov 25 '14 at 10:10 PM

That is so awesome! Already working on my new 3D based assets to put in this game. Thank you again.

avatar image MikeFriel Feb 03 '16 at 06:56 PM

Thanks this helped a lot :)

However I'm having a few issues in that the mesh rotates towards the screen rather than left and right? Also how did you create the "character movement" node in the last picture, not sure what this is?

Help much appreciated

avatar image FatMoth Feb 03 '16 at 07:11 PM

This was from 4.2 I think. Instead of the pitch yaw nodes, maybe try using axis nodes for setting rotations?

avatar image MikeFriel Feb 03 '16 at 07:15 PM

Never mind Fixed the rotation issue :) What would be the best way to add acceleration?

avatar image TJ V ♦♦ STAFF Feb 03 '16 at 07:34 PM

Hey Mike,

It depends on what type of movement you want but the solution I provided above will give you more of a realistic 'physics-like' thrust.

Or you could add a more rigid arcade style.

What type are you looking for?

(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