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

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

31. 有关Laya3D碰撞检测疑问 [ 48%]

...new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>;  private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FU...

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

32. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 48%]

...{ index +=1; layaMonkey.meshRender.material.transformUV.offset = new Laya.Vector2(index 0/100.0, index 0/100.0);     layaMonkey.active = !debugModel;     layaMonkey.transform.rotate(rotation, false);     if (debugModel) {         phasorSpriter3D.begin(Laya.WebGLContext.LINES, camera); ...

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

33. 射线检测-射线检测 [ 47%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _corners = new Array(); _corners[0] = new Laya.Vector3(); _corners[1] = new Laya.Vector3(); _corners[2] = new Laya.Vector3(); _corners[3] = new Laya.Vector3(); _corners[4] = new Laya.Vector3(); _corners[5] = ne...

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

34. Cannot read property 'rayCast' of undefined [ 46%]

...per(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Laya.Stage....

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

35. 射线检测-碰撞器混合 [ 43%]

...port laya.d3.math.Quaternion; import laya.d3.math.Ray; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.Cylinder...

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

36. 射线检测-选取物体 [ 33%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitAllInfo = new Array(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPoi...

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

37. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...e, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.clear(); this._allAgent.forEach((agent) => { agent.destination = pos; let paths = agent.getCurrentPath(); if (paths.length >= 2) { let poin...

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

38. 2D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 10%]

...可以在代码中设置,示例代码如下: Physics2D.I.gravity= new Vector2(0,9.8) 2.3.3 重力缩放系数 gravity Scale 除了全局的重力加速度参数设置外,刚体的重力缩放系数属性,是用于独立影响单个动态刚体重力效果的参数。 该值乘以重力值,...

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