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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

pawn falls too slow

I have a "tank" pawn (tank right now is just a box with four wheels). When I play my level it spawns above the ground and falls incredibly slow, also when it hits bumps in the road is can stand up on the front or back wheels and it takes a very long time to fall back to the ground. I believe the problem comes from gravity not affecting it correctly. I can't change the projects default gravity because all other objects fall at the correct speed. Is there any way to increase the gravity just affecting the pawn.

Product Version: UE 4.9
Tags:
more ▼

asked Jan 07 '16 at 05:04 AM in Blueprint Scripting

avatar image

spector5
8 3 7 8

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

5 answers: sort voted first

I tried messing with the mass and mass scale, but there was no change, which makes me think gravity may not have been the issue. I did implement a quick fix just to get me running: in the event graph on event tick I set linear velocity (only in the z direction) to constantly be -20. This works well enough for what I am doing. Thanks for the ideas.

more ▼

answered Jan 07 '16 at 07:13 PM

avatar image

spector5
8 3 7 8

avatar image FilipeTessaro Jan 07 '16 at 07:23 PM

ok, but it is weird, try to upgrade your project to 4.10 or 4.11, maybe it is a bug in the project. happens sametimes

avatar image Univise Jan 07 '16 at 07:43 PM

Selecting the static mesh of the tank, under the physics tab, did you make sure to tick both "Enable Gravity" and "Simulate Physics"?

If all else fails, you could simulate the gravity yourself. Seeing you have already written a blueprint you could try:

Adding an acceleration variable g, and each tick setting the z velocity to: g x DeltaTime x GetVelocity.Z + GetActorVelocity

avatar image spector5 Jan 07 '16 at 07:47 PM

I do have physics and gravity checked, but originally that didn't work. I kept the boxes checked, but also enabled both in the event blueprint. Now gravity does effect it, but not effectively.

avatar image Univise Jan 07 '16 at 08:10 PM

Good, now the only thing left to do is to adjust the mass in the blueprint where you ticked the boxes as mentioned. Does that give you the desired effect? If not, please tell me, what is "not effectively"? Not strong enough?

avatar image FilipeTessaro Jan 07 '16 at 08:15 PM

Wondering that too, if it is not strong enough, he could increase the gravity scale too

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

Univise, thank you. I had kept changing the mass and mass scale in the details panel and it had no effect. I hadn't thought about changing it in the event graph. I set mass and mass scale at begin play and it seems to work fine now.

more ▼

answered Jan 08 '16 at 02:57 AM

avatar image

spector5
8 3 7 8

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

You could adjust the mass scale under physics tab in the details panel. That should change the rate of how gravity affects the object compared to the rest of the world

more ▼

answered Jan 07 '16 at 05:08 AM

avatar image

EyeDee10Tee
2.1k 59 14 127

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

Is there any way to increase the gravity just affecting the pawn.

There is! It's done like this (First, go into the blueprint for the object):

alt text

gravityans.png (332.1 kB)
more ▼

answered Jan 07 '16 at 07:46 AM

avatar image

lorgus
31 3 2

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

As Iorgus have said, you can simulate physics and increase the Mass in kg, or you can just increase the Mass scale, like here: alt text

mass scale.png (453.4 kB)
more ▼

answered Jan 07 '16 at 12:30 PM

avatar image

FilipeTessaro
1.4k 54 19 60

(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