I have built a ball that bounces around my office. In unity it bounces perfectly but when I debug the project in the holo lens 2 the ball goes through the ground, it's as if I didn't recognize the ground. What scripts should I put to recognize my office well?
In the ball I have a "Rigidbody" with IsGravity true, and in the SpatialMapping I have the "IsKinetic" true.
From the image you share, Is Kinematic (in Rigidbody class) isn't enabled but above the image you tell it's selected to true. Leave it unselected and then the object will fall naturally with gravity. You don't need to do extra changes to the Rigidbody.
Also, assuming you don't have a hole in your floor, make sure you're placing a ball bouncing around after the spatial mapping is actually completed. If you're not giving enough time to create the meshes that represent the floor, then the ball falls through it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With