Actor falls through floor

I’m new to Unreal Engine.

I’m working through the examples in “Learning C++ by Building Games with Unreal Engine 4.” Everything was working according to the examples in the book, until I got to the point of adding a Game Mode. After adding that, as soon as I hit ‘Play’ the Avatar immediately falls through the floor and everything goes black.

Thanks for any help.

you really didn’t post much information to work with.

at first it sounds like a collision issue since you fall through the floor, but then you say everything turns black which is quite odd. then again we know nothing of your scene and how its lit so it could be that your within or beneath the floor mesh where light doesn’t get to.

the bit about the game mode shouldn’t matter unless you specified a different default pawn or controller.

Choose your character as DefaultPawnClass inside Game Mode. Also check for the Player Start’s location in case you moved it accidentally.

Thanks for your help. I did change the default pawn class to the Avatar that I added.

The scene consists of 4 rocks, a fire, and an avatar. When I hit play, all I see is the fire, which goes up in the scene until it disappears. I’m assuming that means my avatar is falling. After a second, once through the floor everything is black.

I agree there isn’t enough information to debug. I’ll probably just start over in case I made a mistake somewhere.

Thanks for your help. I did change the Default Pawn Class to the avatar I created. It didn’t fall through the floor until I created a new Game Mode, so that probably has something to do with it.

There isn’t enough information to debug. I’ll probably just start over in case I made a mistake somewhere.