A框架的aframe-physics-system v.4.0.1:动态物体不继承父级位置

问题描述

过去一年中的某个时候,唐·麦卡迪(Don McCurdy)的aframe-physyics-system已经从允许从父实体继承动态体位置继承到不允许它,尽管静态体继承仍然可行。

在本例中使用最新版本; 4.0.1:

http://glitch.com/edit/~401-parent-bug

所有实体都是 control entity 有一个 position="0 0 -25"

  • 静态框的位置为z=0,但是-
  • 必须按顺序将
  • 动态物体球体设置为z=-25的位置 将其z位置与框对齐。

如果有人可以修复,我将把项目指向系统的编辑版本

代码片段

    <!--dynamic-body sphere 0-->
    <a-entity
      geometry="primitive: sphere; radius: 0.3"
      position="-4.28 12 -25"
      material="color: #ff5566"
      dynamic-body="mass: 0.2"
    ></a-entity>

    <!--datic-body box 0-->
    <a-entity
      geometry="primitive: box"
      position="-5 11 0"
      material="color: #4CC3D9"
      static-body="mass: 20"
    ></a-entity>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...