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


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.

In:

there are two scripts:

  • Spatial mapping renderer
  • Spatial mapping collider

to work with spatial mapping but when I select this script in Unity a warning shows and It says that the scripts are deprecated. I dont know if exists new scripts or not. A lot of documentación is for Holo lens 1 but not for Holo lens 2.

From the sounds of it you’re doing it correctly. I am curious if your mesh size is affecting performance on device the point where the physics isn’t calculating fast enough and your ball is slipping through the surface before physics sees a collision happening. From the picture your mesh looks pretty sizable. Does this reproduce in a smaller space? I would also consider trying the same mesh but with visualization turned off to speed up the performance as drawing a mesh that scale will definitely have an effect on performance. From initial read, this sounds performance related but you have my attention :slight_smile: