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

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

61. laya.d3.Touch_API3.0 [ 72%]

...一识别ID。 Returns number 唯一识别ID。 position get position(): Vector2 Defined in laya/d3/Touch.ts:29 获取触摸点的像素坐标。 Returns Vector2 触摸点的像素坐标 [只读]。 Methods _getIndexInList _getIndexInList(): number Implementation of ISingletonElement._getIndexInList...

来源: Laya3.0_api 发布时间: 20231102

62. 射线检测-点击行走 [ 72%]

...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { box.transform.position = _position; box.transform.rotation = _qu...

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

63. 射线检测-放置物体 [ 71%]

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

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

64. 如何从摄像机创建一条射线(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 70%]

...原点。 ![](img/1.png)(图1) ```typescript //创建一个点 var point:Vector2 = new Vector2(); //创建一个射线 var ray: Ray= new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏...

来源: Laya2.0_文档 发布时间: 20210714

65. laya.d3.core.render.command.CommandBuffer_API3.0 [ 70%]

... setGlobalMatrix setGlobalNumber setGlobalTexture setGlobalVector setGlobalVector2 setGlobalVector3 setRenderTarget setShaderDataColor setShaderDataInt setShaderDataMatrix setShaderDataNumber setShaderDataTexture setShaderDataVector setShaderDataVector2 setShaderDataVector3 setShaderDefine Construct...

来源: Laya3.0_api 发布时间: 20231115

66. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 70%]

...     this.camera = null;         this.lastPosition = new Laya.Vector2(0, 0);         this.distance = 0.0;         this.disVector1 = new Laya.Vector2(0, 0);         this.disVector2 = new Laya.Vector2(0, 0);         this.isTwoTouch = false;         ...

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

67. laya.d3.core.particleShuriKen.module.TextureSheetAnimation [ 69%]

...tartFrame[read-only] 获取开始帧率。TextureSheetAnimation  tiles : Vector2纹理平铺。TextureSheetAnimation  type : int类型,0为whole sheet、1为singal row。TextureSheetAnimationPublic Methods  MethodDefined By  TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) ...

来源: laya_api 发布时间: 20170929

68. 射线检测有偏差 [ 69%]

...坐标,为射线检测偏差使用 public changeToClientWorld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.sta...

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

69. laya.d3.core.particleShuriKen.module.TextureSheetAnimation [ 69%]

...tartFrame[read-only] 获取开始帧率。TextureSheetAnimation  tiles : Vector2纹理平铺。TextureSheetAnimation  type : int类型,0为whole sheet、1为singal row。TextureSheetAnimationPublic Methods  MethodDefined By  TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) ...

来源: Laya2.0_api 发布时间: 20190513

70. 在代码新建b2Vec对象会导致编译阶段就出错 [ 69%]

...引用的b2Vec2是box2D库里面的变量类型,引擎提供的是Laya.Vector2,您将b2Vec2改为Laya.Vector2就可以了。   2023-11-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 誌偉王 相关问...

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