unity3d - 球在全息镜头中穿过地面,但在统一时效果很好。空间映射

标签 unity3d hololens mrtk

enter image description here

我做了一个可以在我办公室周围弹跳的球。团结起来,它完美地弹跳,但是当我在全息镜头 2 中调试项目时,球穿过地面,就好像我不认识地面一样。我应该放什么脚本才能很好地识别我的办公室?

在球中,我有一个 IsGravity 为真的“刚体”,在 SpatialMapping 中我有一个“IsKinetic”为真。

enter image description here

enter image description here

enter image description here

最佳答案

从您分享的图片中,运动学 (在 Rigidbody 类中)未启用,但在您告诉它已选择为 true 的图像上方。不选中它,然后物体会随着重力自然下落。您无需对 Rigidbody 进行额外更改。

此外,假设您的地板上没有洞,请确保在实际完成空间映射后放置一个弹跳的球。如果您没有给予足够的时间来创建代表地板的网格,那么球就会穿过它。

关于unity3d - 球在全息镜头中穿过地面,但在统一时效果很好。空间映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60451244/

相关文章:

c# - 以概率生成 true 或 false bool 值

ios - Unity 3.5 到 Unity 4.5.4

c# - 通过 POST httprequest 传输文件到 hololens(错误 429)

unity-game-engine - 无法部署到 HoloLens(错误 80004005)

hololens - 如何获取事件 MRTK 指针的位置?

unity-game-engine - 将 MRTK 与 Windows 10 平板电脑结合使用

unity3d - Unity 在生成的 C++ 中使用 “−” (U+2212) 作为负号

c# - 如何将 Sprite 完全移出屏幕?

c# - Visual Studio 2017 building to hololens error CS0246 "The type or namespace name ' UnityPlayer' Could not be found”

c# - 无法部署到 HoloLens 模拟器