createImage.js 454 B

12345678910111213
  1. function createimage() {
  2. // 创建贴图
  3. var plane = app.create({
  4. type: 'Marker',
  5. parent: app.query('#console')[0],
  6. localPosition: [0, -0.227, 0.01], // 父物体坐标系下相对坐标位置
  7. useSpriteMaterial: false,
  8. url: '/uploads/wechat/163607/file/安防展/images/anfangzhan.jpg',
  9. size: 0.065
  10. });
  11. plane.rotateX(-55.7);// 平面旋转
  12. plane.pickable = false;// 设置不可拾取
  13. }