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"

Vehicle Always Lands on Wheels

Hi All,

I have a racing style game that allows you to drive off ramps, hills, etc. and hit a key to do a trick (in this case a forward flip). I am using the SetWorldRotation node and it is working fine, the vehicle does a 360 degree front flip. The problem comes in when the vehicle hits he ground before rotating all 360 degrees. Instead of crash and tumbling on the ground it always instantly rotates back to its upright position.

Here is the code I am using. alt text

The script plays all the way through (tested using the print function to see where the Flip Timeline stops). The Jumping variable is a trace to determine how far off of the ground the vehicle is.

Any help getting the vehicle to crash when it can't complete the trick would be appreciated. Much thanks!

Matthew

Product Version: UE 4.11
Tags:
tricks.png (208.2 kB)
more ▼

asked May 02 '16 at 09:33 PM in Blueprint Scripting

avatar image

Mattboyguy
33 6 11 12

avatar image Nick Jackson May 03 '16 at 11:11 AM

I don't see anything obviously wrong... Is it going into Break Tick correctly? What do you get out of setting Max Angular Velocity?

avatar image Mattboyguy May 03 '16 at 06:46 PM

Thanks for your reply Nick.

Yes, it Breaks trick correctly (or at least it seems to). I have tried to show that a few different ways while troubleshooting. I print to screen the output of my timeline and it always stops when my vehicle hits the ground. But them poof its back upright like its taking the last frame from the rotation and applying after the fact.

Hmmmm on the Angular Velocity. I had it in there because when you go off of a jump the vehicle was rotating too much in the air. I want a bias towards staying upright in the air so once the vehicle is 'jumping' I drop the AV to ~30. I tried it bybassing the AV node and it works the same (I think because I am teleporting in the rotation node).

avatar image Nick Jackson May 04 '16 at 11:07 AM

Are you basing this on a vehicle template? Which one? It works well with normal actors, I wonder if there is something special about vehicles...

avatar image Mattboyguy May 04 '16 at 04:51 PM

Yeah, its based on the advanced vehicle template.

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

0 answers: sort voted first
Be the first one to answer this question
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