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"

Child collider on player pawn

So, I'm building a game, and it currently all works mostly okay, but I discovered a slight issue. In the game, the character jumps between ledges, but the large capsule collider size meant that the character appeared to be standing on air at certain points. To counter this, I resized the collider to be very thin, which worked, but left me with another issue - when walking into walls, the character can sink into the wall, which looks very odd.

Now, there are more complex things at work here, but this is the general gist. In an attempt to find an over-arching solution, I tried attaching a child collider, at the original width, to the top half of the player, so that this could be used for walking into walls and things, while the slimmer collider could be used for ground collision, but for some reason, the child collider is being ignored entirely, regardless of the settings I use. Is there some specific way to set this up, or is it just not possible?

Product Version: Not Selected
more ▼

asked Sep 14 '14 at 12:28 AM in Using UE4

avatar image

388 41 46 60

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

1 answer: sort voted first

Hi Hoeloe,

There is a setting in the Defaults tab of your character blueprint called 'Perch Radius Threshold'. Set this to a higher value, for example 500, and it will cause your character to slip off of the edge before allowing them to stand in the air.

Just make sure you set your capsule back to it's default size.


more ▼

answered Sep 16 '14 at 03:25 PM

avatar image

41k 1009 183 494

avatar image Hoeloe Sep 16 '14 at 03:34 PM

Unfortunately, this won't help. Our game mechanics require that we set the world position of the player directly, so no matter how high this value gets, its effect will be negated.

avatar image TJ V ♦♦ STAFF Sep 16 '14 at 03:43 PM

Well, another idea would be to perform a line trace to measure the distance a player is beyond a ledge. Then add a slight impulse to push the player off.

avatar image Hoeloe Sep 16 '14 at 03:47 PM

That is potentially a solution. Thanks.

(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