Unreal Engine 4 - Adding Crouch To The First Person Template

preview_player
Показать описание
Social Links:
Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial!

for anyone watching the tutorial:
If you're making your character with the character movement component (highly recommended) you can bypass manually writing the crouching logic by using the character movement component. The functions are trivially called Crouch, Un Crouch. There are a couple of settings in the Character Movement Component to tweak the height, max movement speed while crouching, etc.

P.S. (Important) Don't panic if your crouch function doesn't execute - just check the checkbox in the Character Movement Component. The name is Can Crouch. By default it's unchecked.

leodemurchyan
Автор

You don't need to adjust both the camera and the capsule because the camera is attached to the capsule. Just change the half height size of the capsule and you'll get the same effect. And if you use a timeline to adjust the half height value, it'll be a smooth transition as opposed to instant.

TorQueMoD
Автор

guys on the camera use world offset and not local cause if you look down and crouch when using local offset the camera will go behind the player, same for looking up then it goes in front

nicky
Автор

Very nice vids, pretty understandable that's a like for me !

GLMRX
Автор

I tested you interesting script with ue 4.27 and found that after set capsule size my movement was uncontrollable. So I went back to the built in Crouch/uncrouch and can crouch... I will try your method with other needs.

sombatkhruathong
Автор

how to prevent user from uncrouch when under the cube? player gets stack if tries to stand up

SurviveOnlyStrong
Автор

After crouching my character turn very slow and I can no longer jump

Genichi__
Автор

How do you decrease the speed when he is character is crouched?

daniellal
Автор

My Charater goes thru the floor sometimes....? How to fix this?

austk
Автор

Amazing tutorial man! Could you make a tutorial to verify if exist something above the capsule that would bug it? Thx

NathanRech
Автор

Mine is just jigly if botg the camera heith end the capsule size gets changed

mihaiiancu