Hi!
I have created a very simple app that uses the spatial mapping collider to generate my collider-mesh.. I then also have placed a simple cube in the scene.
The cube has a rigidbody and a box-collider and has useGravity = true.
Now to the problem...
Once I load the game in my Hololens.. the cube keeps falling "through" the floor, and my guess is that this is due to the fact that the spatial mapper has not been able to map my room in time, and therefore there is no mesh for the box to collide with.
I solved this temporarily by simply raycasting "downwards" from my box and if the raycast hits something.. then I enable the gravity for the rigidbody.. however.. I find that to be quite an "ugly" solution..
Is there anyway that I could get a status from the spatial mapper (for instance some sort of "progress" of how much has been "scanned".. or like a "complete"-event or something?
↧
Unity gravity and spatial mapping "progress"/completion
↧