[C++] Making a custom colliding pawn
I'm struggling to find any information on how to make a custom pawn collidable. As far as I've understood, the easiest way of making pawn colliding with other actors( i.e. walking on ladders, or getting blocked by walls) is to use OnActorBeginOverlap, so do I. I've created a basic function to check if colliding is detected at all, it creates a sphere when collision with other actor happened.
Unfortunately it doesn't work. I can't figure out if it collides at all. I've used
Honestly, if you want collision it will be way easier to just make a blueprint that inherits from your C++ class. Rolling your own will just give you headaches in the long run. It is trivially easy to handle this with blueprints, and doesn't really have much more overhead than using just a C++ class, and you'll save that overhead by not having a convoluted way of dealing with collision.
If you are dead set on doing it yourself, you'll need to enable collision on your actor, attach a collider to your actor, and assign that collider some collision properties using SetCollisionEnabled or SetResponse. I can not recommend avoiding this enough though.
answered Sep 02 '15 at 04:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here