AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Unity: Drone goes through ground and walls after continuous collisions

Open PaigeDavid opened this issue 5 years ago • 6 comments

Windows 10, Unity version 2018.2.15: if the drone is flying into a wall (tested on 1 meter thickness), it will eventually fly through the wall after just a few collisions. For the ground, if it comes down at any angle with a small amount of speed, it will fall through the terrain. This happens both with a controller and using the C++ API. I was unable to recreate this in Unreal as the drone does not go through the terrain or objects.

I have looked into this a little bit and I have tried changing the Fixed Timestep, I have tried the "DontGoThroughThings" script since this sounded similar, and I have tried changing the Interpolate / Collision Detection settings on the rigidbody but that usually messes up how the drone flies.

PaigeDavid avatar Dec 17 '19 13:12 PaigeDavid

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

stale[bot] avatar Apr 19 '22 04:04 stale[bot]

I am having the same problem, using Windows 11 and Unity version 2019.3.12f1. The standard generated logs in Unity show that it is detecting the repeated collisions, but the drone will still fly through objects. I have also tested this on objects at least 40 meters thick, using the same material and settings as the objects provided in the demo environment. Beyond the attempted fixes listed above, increased the size of the box collider for the drone body to extend slightly beyond the rotors, but with no effect.

emilykjensen avatar Apr 26 '22 19:04 emilykjensen

is this issue fixed or is any workaround available? It was working with version 2019.3.12f1 and wanted to upgrade to 2020.3.9f1 and this issue occurred to me.

buvnswrn avatar Oct 22 '22 17:10 buvnswrn

is this issue fixed or is any workaround available? It was working with version 2019.3.12f1 and wanted to upgrade to 2020.3.9f1 and this issue occurred to me.

For the Quadcopter object, a simple reset on the Rigidbody component according to https://forum.unity.com/threads/colliders-not-working-in-build-since-last-update.828468/ and undoing it or entering the values manually worked for me and the quadcopter did not fall through the floor.

buvnswrn avatar Oct 22 '22 18:10 buvnswrn

I recently noticed that the issue persists when the distance between the drone and the ground is very less. If I keep more distance, then the drone lies on the ground

buvnswrn avatar Dec 27 '22 22:12 buvnswrn

Any news here? Also on the same issue currently.

Kinggrass avatar Jul 03 '23 12:07 Kinggrass