**I just added the game wizard and player wizard to my custom scene. **
I've placed the "player start" arrow above the ground plane of my custom scene.
However, the "Player Character" from the AC character wizard falls through the floor when the game starts.
Is this a collision issue or something else?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @7StonesStudio.
Is this a first-person Player, given the change in camera when entering Play mode?
It does look like a collision issue, yes. We'll need to figure out if this is an issue with the scene, or the Player.
For the scene, try placing in a simple Cube near the PlayerStart, raising it just above the ground, and attaching a Rigidbody to it. Does it fall through the floor in the same way when entering Play mode?
For the character, try dropping in the SamplePlayer3D prefab (search this in the Project window to select it) in the scene to temporarily override your own. They might not work with the camera correctly if you're using First-person mode, but if you switch to the Scene window at runtime you'll be able to see where they end up.
If you can share screenshots of your own Player's Inspector, I'll see if there are any issues that stand out.
This is a 1st person game.
Here are pictures of the 1st Person Player Character Inspector.
https://postimg.cc/62fXHyv4
https://postimg.cc/YL2wTM6n
https://postimg.cc/V5z1JBxq
Thanks for the details.
The Player has a Character Controller, so they will fall down unless a Collider is on the floor to prevent it.
You can check Ignore gravity? in the Player's Inspector to prevent them from falling, but have a check with the scene's floor collision.
Did you try the Cube / SamplePlayer3D suggestions?
I added colliders to the floor and to the player character. The same thing is happening with the 3rd person camera falling through the floor, though.
I've added the 3D cube to the scene, and it falls to the floor of the scene and does not pass through the floor.
Is your floor on the Default layer? The Player's Ground check layer(s) field will need to include the layer that your floor is on.
If so, you're welcome to PM me your project to take a look at. If you zip it up without the Library folder, the file size should be much lower.
I FIGURED OUT THE PROBLEM!!!
I had to check the box on the First Person Camera and uncheck the box on the Main camera that comes with the default Unity scene.
I also set the First Person Camera to display 1, and set the main camera to another display. Now my First Person Camera works!
Thank you for your help!
I did however run into another issue. Now that I am able to use the First Person controller to traverse the scene, I noticed a constant bouncing that happens when I move. What could be causing this bouncing effect?
Glad it's working now - though if toggling your Cameras was the fix, it sounds like the issue was to do with something else, and not falling through the floor.
If it occurs again, let me know and we'll revisit.
The first-person camera will "head bob" by default, but you can disable this by unchecking Bob head when moving? in the FirstPersonCamera object's "First-person Camera component".
Thank you so much, Chris! When I unchecked the "headbob" checkbox, the bouncing stopped! I appreciate your diligence with all of my inquiries.