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. 

Sphere rolling towards third person player when pushed

Hey guys,

I have a problem. In our game we have a third person character that has to push objects of different shapes. Everything works fine, but when I try to push an object with the shape of a sphere, the "ball" is rolling towards the character. As english isn't my native language, please forgive if I am talking "around the bush".

To be more specific: I can push the sphere, and as long as I keep pushing it slides over the floor in the desired direction, but it rotates exactly wrong, looking like it is rolling towards the character. I've played around a bit and found out, that if I push fast enough and suddenly change my direction, the ball even stops or rolls back in the opposite direction. It looks like it something with the angular momentum is wrong, but I can't figure out how to solve this.

I checked different settings for friction, weight, I even checked if my character perhaps is too small / too big. I spent two hours trying out different settings in my game / level / map etc. but nothing seems to change anything on that.

What am I doing wrong? Do you need additional informations?

Regards,

Nick

Product Version: UE 4.7
Tags:
more ▼

asked Jul 06 '15 at 08:48 AM in Everything Else

avatar image

Tirnithil
43 1 3 8

avatar image eXi Jul 06 '15 at 08:59 AM

Hey there, yes we would need the code/BP of what you are doing. Otherwise we can only guess that you are doing something wrong at some random place (:

avatar image Tirnithil Jul 06 '15 at 09:13 AM

Hey eXi,

as the problem has nothing to do with my blueprints, please make a simple testcase with the ThirdPersonExample. You just have to add a Sphere, apply a material (to better see the effect) and then check "simulalte physics". If you push the sphere with the third person character, you should get the same result.

avatar image eXi Jul 06 '15 at 09:38 AM

Hm ok, i see what you mean. This is indeed weird. I first thought this would come from the Sphere collision of the character, but also a box collision ended with the sphere spinning towards you. It looks like the player is not pushing it directly, but "stepping" onto it and like if you gently strife the sphere from top down to give it a back spin. Sadly i can not really help you here. I thought you were spinning the ball by hand (programming it).

So either you will need to wait for a staff guy (or someone who knows why this happens) or you will want to perform the push or at least the spin effect by hand. You could lock the axis for rotation and apply it yourself.

avatar image Tirnithil Jul 06 '15 at 10:02 AM

Thank you for your effort at least :)

We gathered some ideas to apply a dirty fix to this (including yours now^^), but I will give it a few days, perhaps someone allready solved this problem by now. I would hate to interfere in a perfectly dýnamic scene at one point. I just doesn't feel right for me :)

avatar image Tirnithil Jul 07 '15 at 05:11 AM

Any news on this? Someone from the team perhaps? I know it doesn't sound like a big deal, but its quite neccessary for our project, and since its a "bug" you can witness in the ThirdPersonExample, I think its quite interesting if there is a solution :)

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

1 answer: sort voted first

Hey ... thanks to Omnicypher, who gave me the answer to another problem, I was able to find the problem making the balls rotate. The CharacterMovement Component has "Agent Physics", where you can find not only the Push Factor that makes your Character stronger or weaker, but also a "Push Factor Point ZOffset", wich is by default set to -0.75. While this is a fine idea for like kicking balls, its none for pushing balls. I don't see the point in setting its default rating to -0.75, but well, setting this to 0 really smoothes our complete physics.

So this is resolved I think.

more ▼

answered Jul 08 '15 at 06:59 AM

avatar image

Tirnithil
43 1 3 8

avatar image Breyarte Oct 07 '15 at 04:16 AM

Thank you for putting this here. I was having the exact same "default" problem.

(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