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"

Crouching won't stop at edge, but a bit after it.

I've been trying to get crouching with my side-scroll character to stop right at the corner of a ledge once its reached. Right now it stops a little distance past what would be considered the end of the platform, and walks down it a bit before stopping. I think this is do to the capsule collision only stopping the character once the capsule becomes straight vertical , but since I can't change the capsule to be something like a cube I don't see me being able to fix my issue. Here is an image for reference. alt text

I know creating a pawn is another solution in order to have custom collision, but i hope there's an easier work around because I would prefer using the character BP.

Product Version: UE 4.20
Tags:
crouch.png (189.5 kB)
more ▼

asked May 08 '19 at 04:13 AM in Blueprint Scripting

avatar image

ChrisOBrooks
3 3 2 3

avatar image Adij May 08 '19 at 08:10 AM

"play" with options in CharacterMovement component:

Ledge check threshold Use flat base for floor checks Perch's

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

1 answer: sort voted first

I my problem is solved. In my characterBP under Character Movement look for "Use Flat Base for Floor Checks" in the details panel, check the box and no more stopping at an angle on a ledge.

Still unsure on how to make my character stop a bit before the edge so they aren't floating over it, but floating over at an angle isn't an issue anymore. Thinning the radius of the capsule sort of works, but there must be a better fix.

Adij mentioned this in his comment. I can't seem to mark his comment as answer.

more ▼

answered May 11 '19 at 05:37 PM

avatar image

ChrisOBrooks
3 3 2 3

(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