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"

Stop Camera Clipping After Player Crouch (FPP)

Hello!

How do I stop my first person camera from seeing through walls when I crouch?

I have already set up crouching to edit the size of the player capsule.

How do I set my capsule collision to bounce as soon as the capsule is altered, rather than only after I move?

To elaborate: Everything works smoothly if I approach the wall already crouched, however when my character is against the wall, and I press crouch, my camera will clip and allow the player to see through the wall. However, if I move slightly, the capsule will bounce off the wall and work as normal.

alt text

alt text

alt text

Product Version: UE 4.21
Tags:
more ▼

asked Apr 18 '19 at 12:39 AM in Blueprint Scripting

avatar image

JobsDone94
1 1

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

1 answer: sort voted first

Increase the size of your capsule with a short timeline, so it isn't all instant.

You could add a small amount of movement input to force the overlap detection ejection force. Perhaps on the Z axis, as I don't believe that would move the character.

Why, can your camera overlap the wall when not moving closer? Your minimum capsule radius shouldn't allow the camera to clip a wall.

more ▼

answered Apr 18 '19 at 07:51 PM

avatar image

BenVlodgi
2.1k 38 17 52

(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