How to make a "floating character"

Hey, so I would like to know how to make a floating character in ue4. This is what I have so far:

And it works. However problem is that pawn handles collisions wherever capsule is touching. So if let’s say he gets shot anywhere in green area, it would take damage, even though it shouldn’t.

Thanks. How would I do this though? I’m failry new to UE4, sorry :frowning:

Create two collision objects, and set collision channel responses differently for two. Use one for channels you use when detecting projectile hits, and another for physics.

Hey Zectric,

easiest, quickest fix for this would be to set CapsuleComponent of your character blueprint to Ignore or Overlap projectiles. What you’re looking for is Collision section in Details panel when your CapsuleComponent is selected. Then, expand Collision Presets section and set it to Custom, and you can adjust particulars of your collision detection.

If you don’t already have a Projectile Object Channel (not all templates have this by default), you can create one by going to Edit > Project Settings > Collision. There, under Object Channels, click New Object Channel button. In dialogue box, type in name Projectile, make Default Response Block or Overlap (depending on what you’re looking for with your projectiles), and click Accept.

problem with this setup, however, is that it will ignore it for entire Capsule, including part you presumably want it to hit at top of character. What you can do, then, is have CapsuleComponent set to Ignore (or Overlap) projectiles, but have your character mesh Overlap (or Block) projectiles. Depending on how you have your projectile set up, you can have it only react when it hits your Mesh component.

Let us know if you need help setting that up, but this should help you get started.

Hope that helps!

Thanks ! This works. Last thing is how would I set a mesh or blueprint to be a “projectile”?

You can see a working example of a Blueprint projectile in First Person Blueprint template, if you want to play around with it. There is also a tutorial for a very basic setup that you can view here:

http://www…com/watch?v=ojvuTz4KCfE&feature=share&list=PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE&index=99