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

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

531. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 48%]

...enderer.material = mat4; //设置位置 cone.transform.position = new Laya.Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody = cone.addComponent(Laya.Rigidbody3D); //创建球型碰撞器 var coneShape = new Laya.ConeColliderShape(raidius, height); //设置刚体碰撞器的...

来源: Laya2.0_文档 发布时间: 20210715

532. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 46%]

...osition; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshRenderer.material = billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.png)(图4) ### 2. ...

来源: Laya2.0_文档 发布时间: 20210715

533. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

... { //注意这里面的属性不要使用到Laya引擎里的类型,比如Vector3这些,是不可以的 Editor.typeRegistry.addTypes([ { name: "MyTestSettingsType", properties: [ { name: "option1", type: "boolean", default: true }, { name: "option2", type: "string", default: "", } ] } ]); Editor....

来源: Laya3.0_文档 发布时间: 20250214

534. 一个简单的跑酷曲面shader分享 [ 46%]

...CurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexMesh.MESH_POSITION0, "a_Normal": Laya.Vertex...

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

535. 材质的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 45%]

...ransform.position; //将创建的球平移 sphere2.transform.translate(new Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 sphere2.meshRenderer.material = billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.png)(图4) ### 2. 修改...

来源: Laya2.0_文档 发布时间: 20210715

536. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 45%]

...osition; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshRenderer.material = this.billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.png)(图4) ### ...

来源: Laya2.0_文档 发布时间: 20210715

537. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 43%]

...cleSystem[read-only] 获取粒子系统。 ShuriKenParticle3D pickColor : Vector4RenderableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D  POSITIONSCALE : int[static] ShuriKenParticle3D  ROLANGULARVELOCITYCONST : int[static] ShuriKenParticle3D  ROLANGULARVELOCITYCONSTMAX ...

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

538. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...mation动画节点添加动画脚本,添加的代码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, pl...

来源: Laya3.0_文档 发布时间: 20240910

539. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 42%]

...nListener.func_onTriggerEnter, "onTriggerEnter"); let tPosEnemy = new Laya.Vector3(); Util3d.v3Copy(tPosEnemy, tPosBull.transform.position); tPosEnemy.x -= 10; pEnemyObj.transform.position = tPosEnemy; // 调用这个方法会触发 onTriggerEnter BUG,看下面Laya.timer.loop里的注释 let pTrigge...

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

540. 预制体模块 · LayaAir3文档 · LAYABOX [ 41%]

...景中 this.scene.addChild( monkey ); monkey.transform.position = new Laya.Vector3(-28.9354,0.3,-63.20264); } ); } } 运行效果如动图3-9 (动图3-9) 四、预加载预制体 在开发过程中,我们会通过大量创建预制体的方式来实现各种功能,因此预制体也可以理...

来源: Laya3.0_文档 发布时间: 20241014