I d recommend using a collision component for the hitbox and making a small trace each frame as it goes from position to position.
Floor collision ue4.
I first tried using a basic sphere collision box surrounding where i assumed the players body to be and applied damage when some actors overlapped this sphere.
Here s a very quick tutorial showing how we can apply collision simple complex to our own custom models all within unreal engine 4.
Ask question asked 5 years 5 months ago.
How to set up collision unreal engine 4 documentation unreal editor manual managing content content asset types static meshes static mesh how to setting up collisions with static meshes setting up collisions with static meshes.
Setting up exporting and importing static meshes using the fbx content pipeline.
When crouching i trigger the crouching animations according to the.
Active 4 years 4 months ago.
This does not handle the same movement as the character component i will try post a follow up video on that.
Each preset contains an object type and a response to each trace and object channel in your game.
I m using the 3rd person blueprint template and i ve added a custom sprint and custom crouch functionality to it.
To make things easier ue4 has a collision preset system.
Even though this system gives a lot of control over what objects in your level will collide with in practice most objects fall into common configurations.
Ive run across a few interesting choices when it comes to player hit detection in the vr template with 4 16.
I recommend also using tags for friendlies and.
Character collider goes through floor when crouching.