i’m trying to add a 3D Physics character to my first person game, but it keeps falling through the floor. is there anyway to fix this or am i stupid and the answer was right in front of me?
The character doesn’t know about the other objects unless they’re a 3D physics object too.
You’ll need to add 3D physics engine behaviour to the floor object and change the type to static:
yeah i did that, still the character fell
In the configuration of both the 3D physics character and the 3D physics behaviours (so on both the player and the floor objects), can you check the layers and masks values?
The ground object should just have layer 1 selected, and the player should have layer 5 selected, and masks 1 & 5 selected.
And make sure it’s Physics 3D, not physics 2D.
nope, my character still fell through it
Do you have any actions that turn off physics behaviour?
Can you screenshot the physics settings for both the player character and the floor objects?
There doesn’t appear to be anything wrong there. Are there any other behaviours attached to the player? Do you have any events?
With such behavior settings, he will never calm down and will jump off the floor for a couple more years
Reset the values to the standard ones and carefully adjust them to the required ones in the range of +_ 0.1, it may help.
I noticed such a bug with a collision, as soon as the Box falls at an angle, it flies by, not always, but it happens, I think the engine does not have time to calculate.
in addition, the floor size itself affects the span…
in addition, the floor size itself affects the span...
no, just the simple WASD events and the First Person Camera! and the only Behaviours are the Physics stuff.
Can you open a new test project, create those two objects and see if you get the same results? Just a blank box for the floor and a random model for the player.
i just did that and it’s the exact same result, however, i think it may be just the first person camera falling through and not the player itself.
I don’t think the camera has weight or any physics associated with it, so not sure why that would happen.
What happens if you change it to 3rd person camera and view the player from 200 pixels away with an elevation of 30 degrees?
i’ll try that!
UPDATE: IT WORKS!!
Your 3D first-person physics character may fall through the floor due to incorrect collision detection, improper floor collider setup, or issues with the character’s rigidbody settings. Check the collider and physics layers to ensure everything is properly aligned.