• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 313 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

1. new BoxMesh(x,y,z)中 的bug? [ 100%]

new BoxMesh(x,y,z)中 的bug? BoxMesh(x,y,z)中xy对调了?创建一个微信3D的项目,修改其y,比如2,结果发现,并非如愿地让物体在竖直方向上由原来1变成两倍(而是垂直屏幕的方向),结果换了下yz的值,效果才出来,于是我怀疑是...

来源: Laya_社区 发布时间: 20180720

2. 求一个三角旋转的算法代码。 [ 99%]

...Aplha: number ): Vector3{                  let u:number = point3d.x;        let v:number = point3d.y;        let w :number = point3d.z;        let T :number= Aplha;        let axisU:Vector3 ;        Vector3.normalize( vector3d,axisU);        let x:number= axisU.x;  ...

来源: Laya_社区 发布时间: 20191218

3. 关于闭包的问题 [ 99%]

...st.length, bg.height / 2); 这一行代码中,我实际是通过Sprite的x,y属性去调整的位置,突然想起教程中讲到的注意事项 x,y调整位置,貌似会从0,0开始一直画到你调整的x,y位置,再加上addChild()的特性,后add在上,所以会盖住先add的Sprite...

来源: Laya_社区 发布时间: 20180810

4. laya.device.motion.AccelerationInfo_API3.0 [ 98%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/motion/AccelerationInfo" AccelerationInfo Class AccelerationInfo 加速度x/y/z的单位均为m/s²。 在硬件(陀螺仪...

来源: Laya3.0_api 发布时间: 20231115

5. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 98%]

...tion; var btPosition = CannonPhysicsComponent._btVector30; if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) { var physicPosition = CannonPhysicsComponent._tempVector30; var worldMat = transform.worldMatrix; Laya.Vector3.transformCoordinate(shapeOffset, worldMat, physicPosition)...

来源: Laya_社区 发布时间: 20210904

6. 当前3D版本怎么获取地图高度?知道xz获取y~~~~~ [ 97%]

当前3D版本怎么获取地图高度?知道xz获取y~~~~~ 2017-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 参考:https://layaair.ldc.layabox.co ... ing03 2017-08-30 0 ...

来源: Laya_社区 发布时间: 20170828

7. 用raycast选取实体,hitresult始终是false [ 97%]

...(3, 3, 3)); var outHitResult: Laya.HitResult = new Laya.HitResult(); point.x = Laya.MouseManager.instance.mouseX; point.y = Laya.MouseManager.instance.mouseY; console.log("rayPoint111 pointx:"+ point.x+" pointy:"+point.y+ " ray.origin.x:"+ray.origin.x+ " ray.origin.y:"+ray.origin.y+ " ray.origin.z:"...

来源: Laya_社区 发布时间: 20191219

8. 如何启用摇一摇 [ 97%]

..._('var SHAKE_THRESHOLD = 100'); __JS__('var last_update = 0'); __JS__('var x = y = z = last_x = last_y = last_z = 0;'); __JS__('var canShake = 1'); __JS__('if (window.DeviceMotionEvent){window.addEventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持D...

来源: Laya_社区 发布时间: 20160110

9. laya.device.motion.AccelerationInfo [ 97%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames AccelerationInfoProperties | Methods Packagelaya.device.motionClasspublic class AccelerationInfoInheritanceAccelerationInfo Object 加速度x/y/z的单位均为m/s²。 在硬件(陀螺仪)不支持的情况下,alp...

来源: laya_api 发布时间: 20170929

10. laya.device.motion.AccelerationInfo [ 97%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames AccelerationInfoProperties | Methods Packagelaya.device.motionClasspublic class AccelerationInfoInheritanceAccelerationInfo Object 加速度x/y/z的单位均为m/s²。 在硬件(陀螺仪)不支持的情况下,alp...

来源: Laya2.0_api 发布时间: 20190513