Third Person Character passing through Floor...?

I have tried every answers that is there for similar questions asked by others but none of them solved the issue for me.

Logic in begin play:

  1. Spawn an actor (Floor) at location (0,0,0)
  2. Spawn another actor (Platform) on the Spawned Floor
  3. Now Get Payer Character if exists and move it on top of Spawned Platform using SetActorLocation
    OR Spawn Third Person Character on top of Spawned Platform

Issue: On play in editor, spawning and collisions works fine but when i jump onto the Floor my character passes right through it.

Can anyone help me what am i doing wrong?

Try looking at your floor in the mesh editor. Does it has any collision? It’s no good setting it to block if it doesn’t have any collision.

Hi ,

If you are telling about the collision in static mesh of the actors, then i think both Platform and Floor mesh’s have the collisions settings. Does it need any changes?

You can see then in green in the mesh editor like this:

But I can also see, in yours:

297388-num.png

Which is correct, so it makes no sense!..

Ok, I just did exactly what you have. The cube, the floor, the spawning, everything. It works fine.

I think you’ve tweaked something and forgotten what.

I’d recommend making a new project and trying your code in there. It will work, and then you can compare the two and find the difference… :slight_smile:

Hi ,

Had the same issue in new project also. But after giving a little thought making a change to the code, i found out that if i spawn the floor through the blueprint it is not behaving correctly (wrt collisions). but when i drop a floor in the world manually (not through code) and have my logic from there like spawning the platform… everything works fine.

I thought that i can start with EMPTY WORLD except for the directional light and fog, with everything spawned using Spawn Actor From Class. But seems that does not work.

You should be able to :slight_smile:

Ok, we’re getting somewhere tho…

Run your spawning level, hit F8 and set view mode to player collision:

297396-col.jpg

I’m assuming there’s no collision on the mesh, but maybe it’s off center or something…?

Ahh…

So how are you spawning the floor? Is it a BP? Are you just spawning a mesh, and then setting it to the floor?

I just did it and it works, like this:

Yes, It is a BP. And using Spawn Actor From Class (that BP class) i am spawning floor actor in the world on begin play. But do i need to set the static mesh explicitly. Bcaz i am not doing it for platform and still collision works fine with my character.

I think it will take the default static mesh that i selected in BP. Doesn’t it?

Yes, if you have the floor mesh in the BP, it should spawn with collision, no problem ( unless you change it in the BP ). You shouldn’t need to set the mesh, because the BP already knows about it.