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

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

311. 建议Transform3D类增加坐标系转换方法 [ 70%]

... 建议Transform3D类增加如下4个坐标系转换方法: 1、transformPoint(point: Vector3): Vector3,局部坐标转世界坐标。 2、inverseTransformPoint(point: Vector3): Vector3,世界坐标转局部坐标。 3、transformDirection(direction: Vector3): Vector3,局部坐标方向转...

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

312. 物理引擎 触发碰撞时 获取碰撞点的方法GetWorldManifolde在onTriggerEnter事件中怎么使用 [ 70%]

...ifold() ;   contact.GetWorldManifold(b2WorldManifold);   b2WorldManifold.points[0].x , b2WorldManifold.points[0].y 2019-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 叔年心~厌世 相关问题 sprite旋转以后,但是原...

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

313. 图片加载失败是什么原因,我该怎么让美术改图 [ 69%]

...resh/hand2.png"] handani.interval = 150 handani.zOrder = 10000 handani.pos(point.x+50,point.y+30) MainUI.Root.addChild(handani) handani.play(0,true,"handani") 控制台: [warn]Retry to load: fresh/hand1.png [warn]Retry to load: fresh/hand2.png [error]Failed to load: fresh/hand1.png [error]Failed t...

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

314. 如何在代码中new Poly [ 69%]

...           开始绘制的 Y 轴位置。          * @param points    多边形的点集合。          * @param fillColor    填充颜色,或者填充绘图的渐变对象。          * @param lineColor    (可选)边框颜色,或者填充绘图的渐变...

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

315. laya.ui.List [ 69%]

...个新的 Sprite 对象用于加载并显示此图片。 Sprite fromParentPoint(point:Point):Point 将父容器坐标系坐标转换到本地坐标系。 Sprite getBounds():Rectangle 获取本对象在父容器坐标系的矩形显示区域。 注意: 1.计算量较大,尽量少用,如果需...

来源: laya_api 发布时间: 20170929

316. 发布rpk摄像机裁剪坐标与html中坐标不一致 [ 69%]

...rpk 如oppo小游戏 则会出现偏差   将获取的  var pos: Laya.Point = Laya.Point.create();  pos.x = Laya.MouseManager.instance.mouseX; 鼠标的位置转成了图片下的本地坐标,我所使用的代码是  selfNode.globalToLocal(pos);// 把stage的全局坐标转换为本地...

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

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

...ong 赞同来自: 要射出的点进行以下处理之后就可以了 this.point = this.changeToClientWorld(this.point) //在showall模式下将屏幕坐标转换到client空间坐标,为射线检测偏差使用 public changeToClientWorld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / ...

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

318. 请问怎么实现MeshSprite3D的鼠标点击检测? [ 69%]

...L时射线有问题 honeyzzzz • 2017-04-24 10:07 问题解决了, this.point.elements[0] = MouseManager.instance.mouseX;//用Laya.stage.mouseX有问题,在SCALE_SHOWALL下 this.point.elements[1] = MouseManager.instance.mouseY; cuixueying • 2017-04-24 10:21 厉害!

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

319. laya.display.Animation [ 69%]

...个新的 Sprite 对象用于加载并显示此图片。 Sprite fromParentPoint(point:Point):Point 将父容器坐标系坐标转换到本地坐标系。 Sprite getBounds():Rectangle 获取本对象在父容器坐标系的矩形显示区域。 注意: 1.计算量较大,尽量少用,如果需...

来源: laya_api 发布时间: 20170929

320. laya.d3.utils.Picker_API3.0 [ 69%]

...例。 Returns Picker Methods Static calculateCursorRay calculateCursorRay(point: Vector2, viewPort: Viewport, projectionMatrix: Matrix4x4, viewMatrix: Matrix4x4, world: Matrix4x4, out: Ray): void Defined in laya/d3/utils/Picker.ts:35 计算鼠标生成的射线。 Parameters point: Vector2 鼠标...

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