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

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

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

...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, 1);...

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

2. 射线检测-放置物体 [ 92%]

...0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector...

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

3. 动画-旧版骨骼动画 [ 92%]

....7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@walk-walk.lsani", "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@attack-attack.lsani", ".....

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

4. 射线检测-点击行走 [ 88%]

...0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); var mat = new Laya.StandardMaterial(); mat.diffuseTexture = Laya...

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

5. 动画-新版骨骼动画 [ 86%]

...() { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Han...

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

6. 高级应用-渲染纹理 [ 75%]

...mera.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(-1...

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

7. 照相机-正交相机 [ 71%]

...ra;package cameraModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import l...

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

8. 照相机-3D空间转2D空间 [ 70%]

...entScaleY); } } new D3SpaceToD2Space;package cameraModule { import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Ma...

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