Maybe its a stoopid question but i gonna ask.
How do i get a ball in/trough a hole?
I made a cube aka floor, flatten and stretched it. subvidue… and removed a face to create a hole.
collision bounds: convex hull, physics static.
The ball is a sphere, rigidbody, bounds set as sphere.
I launch the ball trough force (forwards and into the air) ball needs to get into the hole at the end (golf)
With this setup it wont work, the ball sits on top of the hole.
But when i set the bounds of the floor to triangle mesh it works, but if i hit the ball over the field it will go trough the floor.
If it falls throuh elsewhere, try increasing physics sub-steps or the collision margin.
I incresed the substeps to 3, and reduced mass from 2.5 to 2.0, and i removed the collision bounds from the floor. It seems thats it works now. Thank you.
In my games I check 2-4 times a second if the floor is above the character using a ray. If it is, take the z location of the floor above and move the character a fixed distance above it. In a perfect world that wouldn’t be required, but it is very useful for the occasional uncontrollable falling through the floor.
Read the last line of my post again. I’ve fallen through the floor of every MMO that I’ve played. I’m keen to hear how you manage to avoid the problem completely in your projects.