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"

Make a backflip in vehicle

Hi everybody!

I'm actually trying to make my first SideScroller mobile game on Unreal Engine, and so far I've overcome a lot of problems, but now I'm really stuck ...

I'm trying to make my vehicle doing a backflip while jumping.

I've used impulse to simulate a jump, but I can't find a way to make my vehicule tilt backward while the jumping key is pressed. I've tried the AddLocalRotator on the Mesh or on the actor with no results...

And I'm using the VehicleMovement to simulate the physics of a rider.

alt text

Do you have any idea ? Thank you very much for your help, any help would be greatly appreciated!

alt text

Product Version: UE 4.10
untitled 19.png (482.7 kB)
untitled 18.jpg (17.3 kB)
more ▼

asked Mar 14 '16 at 09:11 PM in Blueprint Scripting

avatar image

Aigal Studio
26 1 1

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

1 answer: sort voted first

You could change the vehicle's center of mass when it jumps to have gravity roll it for you and then set it back to normal center of mass after. If you want it to roll(flip) backwards you could adjust its center of mass up in the Z and negative in the X, but it will most likely require trial and error to get the amounts just right for the effect you want to achieve.

more ▼

answered Mar 15 '16 at 02:41 AM

avatar image

Black Phoenyx
4.2k 165 9 170

avatar image Aigal Studio Mar 15 '16 at 08:27 AM

Thanks for your answer :)

I've tried the Center of Mass but it doesn't seem to affect or change anything... I've tried with a lot of different valors.

I'm using the mesh of the sedan as in the exemple of the Unreal Engine, it's very similar to the effect I want to achieve, I just can't make it flip :/

alt text

untitled 20.jpg (527.5 kB)
avatar image Black Phoenyx Mar 15 '16 at 07:33 PM

How much are you adding to the center of mass, try something extreme like +5000 Z and -3500 X it should flip backwards, that's why I said there will be some trial and error to getting the settings just right to get the effect you are 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