大约有 259 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
Laya3.0_api(75) Laya_社区(60) Laya2.0_api(45) laya_api(38) Laya3.0_文档(23) Laya2.0_文档(15) Laya2.0_示例(2) Laya_示例(1)
... elasticDistance:Number (default = 0) — (可选)橡皮筋效果的距离值,0为无橡皮筋效果,默认为0,可选。 elasticBackTime:int (default = 300) — (可选)橡皮筋回弹时间,单位为毫秒,默认为300毫秒,可选。 data:* (default = null) — (可选...
来源: laya_api 发布时间: 20170929
...的话 那当A都满足1,2,4条件时 这个时候假设A在B的上面 距离B还有300多像素的距离 就会一闪到B上面 所以 必须有第3个条件来限制住 感觉很污~~ 反正就是这么个意思 有不对的地方请指正。。。。 嘿嘿 还记得我们的Floor的宽度是...
来源: Laya_社区 发布时间: 20160801
...okeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水平对齐方式 line-height:20px; 行高 background-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽...
来源: Laya2.0_api 发布时间: 20190513
...unction Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = null; //背景右边补丁 this.rightBg = null; //当前地板上面的物品集合 this.itemList = ; Floor.__...
来源: Laya_社区 发布时间: 20160803
...碰撞区域 var hitRadius = role1.hitRadius = role2.hitRadius; // 根据距离判断是否碰撞 if(Math.abs(role1.x - role2.x) < hitRadius && Math.abs(role1.y - role2.y) < hitRadius){ // 碰撞后掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循...
来源: Laya_社区 发布时间: 20170525
...焦距特性的后处理效果。在现实生活中,相机只能在一定距离内对物体进行锐利的聚焦; 离相机较近或较远的物体会有点失焦。点击创建即可使用,如图3-2-1 图3-2-1 景深模糊参数如下: | 参数 | 类型 | 说明 | 默认值 | 取值范围 | |----...
来源: Laya3.0_文档 发布时间: 20260105
...碰撞区域 var hitRadius = role1.hitRadius = role2.hitRadius; // 根据距离判断是否碰撞 if(Math.abs(role1.x - role2.x) < hitRadius && Math.abs(role1.y - role2.y) < hitRadius){ // 碰撞后掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循...
来源: Laya_社区 发布时间: 20170525
...线来确定在3维世界的平面朝向,可以通过偏移值来调整距离原点的偏移多少。API说明如图2-17所示。 (图2-17) 通过API,我们可以看到normal是一个3维向量值,表示着平面的法线。例如这个值为Vector3(0, 1, 0),则表示法线位于Y轴正...
来源: Laya3.0_文档 发布时间: 20251010
... elasticDistance:Number (default = 0) — (可选)橡皮筋效果的距离值,0为无橡皮筋效果,默认为0,可选。 elasticBackTime:int (default = 300) — (可选)橡皮筋回弹时间,单位为毫秒,默认为300毫秒,可选。 data:* (default = null) — (可选...
来源: Laya2.0_api 发布时间: 20190513
...线来确定在3维世界的平面朝向,可以通过偏移值来调整距离原点的偏移多少。API说明如图11-1所示。  (图11-1) 通过API,我们可以看到normal是一个3维向量值,表示着平面的法线。例如这个值为`Vector3(0, 1, 0)`,则表...
来源: Laya2.0_文档 发布时间: 20210715