x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.21
Tags:
more ▼

asked Mar 16 '19 at 09:56 PM in Blueprint Scripting

avatar image

jdhpa
1 1

avatar image ThompsonN13 Mar 17 '19 at 03:10 PM

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.

avatar image jdhpa Mar 18 '19 at 02:02 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Mar 18 '19 at 12:34 PM

avatar image

Ego Studio
606 4 4 5

avatar image jdhpa Mar 18 '19 at 02:04 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question