大约有 201 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
[LayaAir3]在3d相机设置视图矩形后 检测3d场景下的点击计算问题 camera.viewportPointToRay 的转换应该统一用viewport的值 见图一 getSprite3DUnderPoint 里判断点击区域得考虑设置视图矩形后viewport.width 变小的问题 见图二 附件 : --> 2024-06-13 ...
来源: Laya_社区 发布时间: 20240613
2D碰撞检测 目前是发射弹球游戏,竖直运动检测都还好,碰撞区域是用Rectangle,但是当有角度的发射,Rectangle就没法好好判断了,想到一钟办法是用Circle来做判断区域,如果就想用矩形判断还有更好的方法吗? 2016-11-30 添加评论 ...
来源: Laya_社区 发布时间: 20161130
...aPublic Methods MethodDefined By contains(x:Number, y:Number):Boolean 检测对象是否包含指定的点。 HitAreaProperty Detailhitpropertyhit:Graphics 可点击区域,可以设置绘制一系列矢量图作为点击区域(目前只支持圆形,矩形,多边形) Implementation ...
来源: Laya2.0_api 发布时间: 20190513
...aPublic Methods MethodDefined By contains(x:Number, y:Number):Boolean 检测对象是否包含指定的点。 HitArea isHit(x:Number, y:Number):Boolean 是否包含某个点 HitAreaProperty Detailhitpropertyhit:Graphics 可点击区域,可以设置绘制一系列矢量图作为点击区域...
来源: laya_api 发布时间: 20170929
laya的hitTestPoint没有第三个参数吗,只检测到矩形碰撞?惨了我as3人物的精确碰撞都靠第三个参数 怎么改装成h5? public hitTestPoint( x:number,y:number ,shapeFlag:boolean ):boolean 计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相...
来源: Laya_社区 发布时间: 20171106
...性值到此矩形对象中。 Rectangle equals(rect:Rectangle):Boolean 检测传入的 Rectangle 对象的属性是否与当前 Rectangle 对象的属性 x、y、width、height 属性值都相等。 Rectangle intersection(rect:Rectangle, out:Rectangle = null):Rectangle 如果在 rect 参数...
来源: laya_api 发布时间: 20170929
...ate():Rectangle[static] 创建 Rectangle equals(rect:Rectangle):Boolean 检测传入的 Rectangle 对象的属性是否与当前 Rectangle 对象的属性 x、y、width、height 属性值都相等。 Rectangle intersection(rect:Rectangle, out:Rectangle = null):Rectangle 如果在 rect 参数...
来源: Laya2.0_api 发布时间: 20190513
...an Implementation of IHitArea.contains Defined in laya/utils/HitArea.ts:26 检测对象是否包含指定的点。 Parameters x: number 点的 X 轴坐标值(水平位置)。 y: number 点的 Y 轴坐标值(垂直位置)。 sp: Sprite Returns boolean 如果包含指定的点,则值为 true...
来源: Laya3.0_api 发布时间: 20231115
...有设置图像资源的显示对象),鼠标事件与此对象在碰撞检测时,是否穿透。ture为可穿透,false为不可穿透。 * 可穿透时,引擎不再检测本对象,而会递归检测子对象,直到找到命中的目标对象或者未命中任何对象。 * 不可穿透...
来源: Laya_社区 发布时间: 20250825
...滤镜? 怎样才能找到那个MyTestView类,命名空间问题 怎么检测点是否在 graphics所绘制的区域内 斜矩形怎么计算碰撞 如何实现【在给定矩形内清空一个矩形】达到镂空效果 如何清除graphics绘制的矢量图 问题状态 最新活动: 2017-01-1...
来源: Laya_社区 发布时间: 20170118