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"

When crouching, the character go under ground...

Hi, I'm new here. Today I have some issues that I could't solve. If you have any ideas or have the same problems before, please leave a comment. I'll do my best to try to understand and learn!

Problem describe:

I was finding some "smooth crouching" method for the game, and I found this useful post:

How to write a smooth crouching script in blueprint?

I follow the step in the answers and everything works OK, but instead of just crouch, my whole character's body sank into the ground. And I also noticed that the character's capsule still stay in the same position. So I tried to adjust the "Capsule Half Height" and other options(not all of them), but it doesn't work...

The animation itselve has no problem I think....

If you need more info and detail, please let me know!

alt text alt text

The Event Graph and Hierarchy is here:

alt text alt text alt text

Product Version: UE 4.19
Tags:
more ▼

asked Jun 17 '18 at 07:07 PM in Blueprint Scripting

avatar image

IC Endrit
1 1 2

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

1 answer: sort voted first

I think that the capsule is moving in the sense that it is shrinking and then gravity is pulling it to the floor. you could lerp the skeletal mesh up and down as you change the capsule.

if the capsule half height is 40 the mesh relative z location should be -40.

if the capsule half height is 80 the mesh relative z location should be -80.

more ▼

answered Jun 17 '18 at 09:10 PM

avatar image

IndieGameCove
1.4k 11 4 10

avatar image IC Endrit Jun 18 '18 at 12:22 PM

Hi, Thanks for your reply. I really appreciate that. I have been trying to use your method and test for several hours, but I still not solve yet... Because I don't know the exact way to connect the node.

Could you explain how your idea works with some pictures or screenshots? That will be super helpful, thanks!

alt text

avatar image IndieGameCove Jun 18 '18 at 11:20 PM

I don't have a crouch animation to test with, but I was thinking this.

alt text

Sweep unchecked btw.

crouch.png (139.0 kB)
avatar image IC Endrit Jun 19 '18 at 11:44 AM

Oh my! That perfectly solve my problem! Thank you so much!

(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