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

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

1. 射线检测-碰撞器混合 [ 100%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraMoveScript); //加载猴子 this.layaMonkey = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); this.layaMonkey.transform.position = new Laya.Vector3(0, 0, ...

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

2. 射线检测-选取物体 [ 97%]

....9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(plane.meshFilter.sharedMesh.boundingBox); plane.name = "平面"; //正方体 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); var bo...

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

3. 高级应用-基于物理渲染 [ 90%]

...D, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene...

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

4. 粒子系统-场景与粒子 [ 90%]

...0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Sc...

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

5. 3D场景-场景加载 [ 86%]

...ector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera.sky = skyBox;class SceneLoad { constructor() { Laya3D.init(...

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

6. 天空-天空穹 [ 86%]

...camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");cl...

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

7. 天空-天空盒 [ 86%]

...camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox...

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

8. 射线检测-射线检测 [ 85%]

... * MeshCollider : 网格碰撞器 */ var sprite3d1MeshCollider = sprite3d1.addComponent(Laya.MeshCollider); sprite3d1MeshCollider.mesh = sprite3d1.meshFilter.sharedMesh; var sprite3d2MeshCollider = sprite3d2.addComponent(Laya.MeshCollider); sprite3d2MeshCollider.mesh = sprite3d2.meshFilter.sharedMes...

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

9. VR场景-VR场景 [ 85%]

...r3(0, 2, 0)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); vrCamera.sky = skyBox; class VRScene2 { constructor() { Laya3D.i...

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

10. 高级应用-渲染纹理 [ 83%]

... camera.transform.rotate(new Laya.Vector3(-10, 0, 0), true, false); camera.addComponent(CameraMoveScript); var renderTargetCamera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); renderTargetCamera.transform.translate(new Laya.Vector3(0, 0.5, 1)); renderTargetCamera.transform.rotate(new Laya.Vector3...

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