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

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

1. 射线检测-选取物体 [ 100%]

...ya.Vector3(-0.5, 0.5, 0.5); cylinder.transform.rotate(new Laya.Vector3(0, -45, 0), false, false); var cylinderMeshCollider = cylinder.addComponent(Laya.MeshCollider); cylinderMeshCollider.mesh = cylinder.meshFilter.sharedMesh; cylinder.name = "圆柱体"; //胶囊体 var capsule = scene.addChild(new...

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

2. 照相机-正交相机 [ 99%]

...(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(5, -10, 500)); camera.orthographic = true; //正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; var directionLight = scene.addChild(new L...

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

3. Mesh网格-自定义网格 [ 93%]

...new Laya.Vector3(1.5, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25))); sphere.transform.position = new Laya.Vector3(0.5, 0.25, 0.6); //圆柱体 var cylinder = scene.addChild(new Laya.M...

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

4. 高级应用-寻路导航 [ 74%]

... new Laya.Vector3(0, 7, -7); moveCamera.transform.rotate(new Laya.Vector3(-45, 180, 0), true, false); Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { this.index = 0; //获取每次生成路径 this._everyPath = pathFingding.findPath(this.path[this.curPathIndex % this.pointCount].x, this.path[...

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