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 mesh velocity slows down when running alongside a wall?

I'm making an infinite runner game in Unreal engine 4.15

The problem I'm running into is that when my user controlled pawn tries to "run" along to the invisible barriers (above, below, and to both sides), the pawn mesh collides with the wall and slows down, sometimes stopping entirely. The thing is, I want the collision to be there so the user can't leave the generated play area, but the speed needs to stay the same whether colliding with the walls or not.

I've tried messing with the collision settings and collision classes. I've also tried breaking the hit on hit event and looking at the data to find where the bug is occurring, but no luck.

This is my first time trying to make a game with Unreal engine, so if anyone that has more experience or insight into this issue might know a fix, I'd love to hear it haha.

(Side note: I'm making this game as a final project for one of my classes, and it's due next week. I've been working on it on and off for about 5-6 weeks now, and this is one of the last major bugs I really need to fix before I can turn it in)

Here's a video of it in action: (top left corner is the velocity data of the character mesh)

Screenshot of the character mesh and collision settings:

Screenshot of wall collision settings \(uniform for all 4 walls\):

Product Version: UE 4.15
Tags:
more ▼

asked Nov 29 '17 at 10:11 PM in Using UE4

avatar image

czyk14
1 1 1

avatar image aNorthStar Nov 30 '17 at 07:50 AM

I'm not sure if this will solve it a hundred percent, but as a first step I'd turn off friction, or use a frictionless physical material on your pawn...

It's unlikely, but just as an elegant, cheap solution if your floor, walls and ceiling don't vary much, you could use a Clamp to keep your character location inside the specified bounds.... no need for collision with floor/walls/ceiling at all. If they change all the time, it would be easier to use some form of collision.

(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