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

大约有 19 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0024 秒)

1. 照相机-3D空间转2D空间 [ 100%]

...ar directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/Lay...

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

2. Sprite3D-Sprite3D变换 [ 99%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/Laya...

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

3. 物理引擎-牛顿摆 [ 99%]

...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: false } }); LayaRender.run(r...

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

4. 物理引擎-布 [ 98%]

...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: false } }); LayaRender.run(r...

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

5. 高级应用-实时阴影 [ 95%]

...,越大越高,更耗性能 directionLight.shadowPCFType = 3; Laya.loader.create([ "../../res/threeDimen/staticModel/grid/plane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, nu...

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

6. 射线检测-碰撞器混合 [ 91%]

...yaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 this.cam...

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

7. 物理引擎-Slingshot [ 90%]

...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, width: 800, height: 600, options: { background: '../../res/physics/img/background.png', wireframes: false } }); L...

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

8. 高级应用-渲染纹理 [ 90%]

...d("../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh")); Laya.loader.create([ "../../res/threeDimen/scene/Arena/Arena.ls", "../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); l...

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

9. 高级应用-寻路导航 [ 90%]

...p.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删除原...

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

10. 材质-BlinnPhong-法线贴图 [ 90%]

..., -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/liz...

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