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

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

151. 如何让3D物体在xy平面上做曲线运动时其z轴旋转角度也跟着变化? [ 86%]

...//计算与上一次X坐标的差值 let speedX = newPos.x - pathItem.item.transform.position.x; //计算与上一次Y坐标的差值 let speedY = newPos.y - pathItem.item.transform.position.y; let angle = 0; //得到差值向量的弧度 angle = Math.atan2(speedY , speedX); //计算与上一次弧...

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

152. Sprite3D-Sprite3D加载 [ 86%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh...

来源: Laya_示例 发布时间: 20241117

153. laya.ani.bone.SkinSlotDisplayData_API3.0 [ 86%]

...playData Index Properties attachmentName bones height lengths name texture transform triangles type uvs verLen vertices weights width Methods createTexture destory Properties attachmentName attachmentName: string Defined in laya/ani/bone/SkinSlotDisplayData.ts:12 附件名称 bones bones: any[] Defi...

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

154. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 86%]

...ra = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya....

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

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

... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);  let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...

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

156. laya.d3.renderobjs.renderobj.InstanceRenderElementOBJ_API3.0 [ 86%]

...t _isRender _materialShaderData _owner _renderShaderData _shaderInstances _transform drawCount updateNums Methods _addShaderInstance _clearShaderInstance _destroy _render addUpdateBuffer clear drawGeometry getUpdateData Constructors constructor new InstanceRenderElementOBJ(): InstanceRenderElementOB...

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

157. 有关Laya3D碰撞检测疑问 [ 86%]

...= scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 2, 5)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.clearColor = null;  //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new...

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

158. 加载不了模型 [ 86%]

...era = (scene.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         camera.clearColor = Laya.Vector3(255,255,0.1);         camera.addComponent(CameraM...

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

159. 如何实现3d遮罩效果? [ 86%]

...camera1:Camera = new Camera(0, 0.1, 100); scene.addChild(camera1); camera1.transform.translate(new Vector3(0, 0.8, 1.5)); camera1.transform.rotate(new Vector3(-30, 0, 0), true, false); camera2 = new Camera(0, 0.1, 100); scene.addChild(camera2); camera2.clearColor = new Vector4(0.0, 0.0, 1.0, 1.0); c...

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

160. 移动控制。 [ 86%]

... 下放开注释就发生错误。       //         this.owner.transform.localRotationEulerX=this.hitResult1.collider.owner.transform.localRotationEulerX;        //         this.rotation=this.owner.transform.localRotationEuler;         //     }else if(this.hitRes...

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