Pawn doesn't collide with landscape

Hi,
I’ve been struggling with this problem for quite a long time now, and cannot get it resolved. So i have problem, where my pawn (which is just a flying object with camera attached to it) doesn’t react to landscape and just passes through. Now i think that the solution to the problem lies somewhere in pawn, because i checked it on other smaller landscapes (the one on which the problem exists is very big), and the problem exists on those too. I haven’t been able to find what is the problem with the pawn since then.

Here is some footage from my project:


Hi,
I notice that your pawn doesn’t have a movement component.
so I guess you’re using “set actor location/add actor offset” to move the pawn.
these two functions are basically teleporting the object no matter the collision settings.

you could add a “floating pawn movement” component to the pawn,and use add vector input node to move it.

In addition to what baobao suggested, it looks like your pawn also lacks a collision component, consider adding a capul or box collision as the root component for the pawn. Also, the “character” class preset is a much easier base than pawn to get your feet moving with things like this

I’ve been working for the last few days with what you suggested me to do, yet my pawn still doesn’t collide with landscape, and it only does when simulating physics with the gravity is on. Without the gravity and with simulate physics on, my pawn is stalled.
How can i make it so that i can fly , but with the simulating physics enabled?

You could set the characters mass to 0 on fly input event, I believe you can also adjust the gravity strength. can you post some screenshots of the flying functionality and your characters and/or components collision settings?

I see you have custom for a collision. Does BlockAll do anything different? If so, the issue is in the difference between the profiles.

In your setup, just to test a known quantity, does the thirdpersonbp character’s camera properly collide with your landscape. It OUGHT to out of the box, and if it doesn’t might be with the way your landscape is set up.

To at least help pin down where it’s not working.

Otherwise, when teleporting, you have the option to ‘sweep’ and attempt collision.

Past that there is a floating movement component you might be able to play around with:

So i have this problem solved now. I have moved on from pawn to character, created all input/movement functionality in blueprints, simply using “Add movment input” function worked. Now my character properly collides with the landscape and it all works as it was supposed to work. Thank you all for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.