Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The ball goes through the ground in holo lens but in unity it works well.Spatial Mapping

enter image description here

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.

enter image description here

enter image description here

enter image description here

like image 412
Liliymas Avatar asked Feb 28 '20 11:02

Liliymas


1 Answers

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.

like image 123
Tiago Martins Peres Avatar answered Sep 20 '22 17:09

Tiago Martins Peres