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"

Collision stopping movement on different axis.

Hi, I'm having some trouble with colliders. I am making a top down shooter where you can move left/right & forward/back. I have some standard cubes acting as walls with the block dynamic option selected.

The problem I am having is that when moving left to right, the player is being stopped which is great, but if they are touching the side wall, it also stops them moving forward and back unless they move to the side a little to stop from touching the side wall. I don't quite understand why this is happening, in Unity, if you have a collision to your right, then you are unable to move further right, but this does not stop you moving forward or backwards. In UE4 it feels like the player is kind of stuck to the wall.

To summarise, touching a wall on the X axis also stops movement on the Z axis.

Any idea what I am doing wrong?

Product Version: UE 4.10
more ▼

asked Dec 30 '15 at 03:23 PM in Using UE4

avatar image

6 3 4 7

avatar image Sean L ♦♦ STAFF Dec 30 '15 at 05:27 PM


Would you mind posting a couple of screenshots:

  • One of your level setup

  • One of the collision of your "wall" cubes

  • One of your character's collision and collision settings

This will allow me to get a better idea of what is going on in your level so I can attempt a similar setup on my end. Thank you.

avatar image LowerPoly Dec 30 '15 at 06:00 PM

Hi, thanks for the quick reply. Hopefully the images are clear enough. The first one is the set up of the level, the two sections of black at the sides are the walls, (standard cubes) and you can see the collision info for the walls in the right of the inspector. The second image is the collision data for the player ship.

playerandwall.png (683.3 kB)
playercol.png (30.7 kB)
avatar image Sean L ♦♦ STAFF Dec 30 '15 at 06:17 PM

Thank you for providing the screenshots. However, I also need a screenshot of the viewport of your character blueprint, where it shows a visual representation of your collision. I'd like to see how far your collision extends beyond the bounds of your player ship.

avatar image LowerPoly Dec 30 '15 at 06:27 PM

Ah, my bad. I've added those too, one of the BP and one of the SM. From my understanding there is no representation of the collision on the BP and it is taking it directly from the auto generated collision of the SM. It looks like a pretty tight collider.

bp.png (586.4 kB)
sm.png (447.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Yeah the collision definitely looks tight. Have you tried adding a box collision component to the actor, and using that as the main collision instead? You'd have to parent the ship mesh to the box collision, but if you are able to give this a shot let me know how that works. It could be related to the fact that you're using the mesh's collision.

more ▼

answered Dec 30 '15 at 06:33 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 443

avatar image LowerPoly Dec 30 '15 at 07:07 PM

Yep, that worked, never even crossed my mind that the mesh collider could have been the issue. Good to know. Thanks for the help, much appreciated.

avatar image czyk14 Nov 29 '17 at 11:47 PM

I know its 2 years later, but any change I can see what you ended up doing there? I've having a similar issue with an infinite runner I'm making, but even my ship's box collision is slowing/stopping the ship movement on the forward axis.

(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