大约有 58 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0032 秒)
..., 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在是顺时针,如果逆时针旋转 Math.abs(Math.floor(percent * 360) -360) this.view.img_light.x =...
来源: Laya_社区 发布时间: 20190629
...lay(0,true); 然后循环创建依次执行ui的延迟动画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景...
来源: Laya_社区 发布时间: 20180118
...s; import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.utils.Browser; import laya.webgl.WebGL; import laya.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function LayaSample() { //初始化引擎 MiniAdpter.init();...
来源: Laya_社区 发布时间: 20190515
...r = 0; private pitch: number = 0; private animator: Laya.Animator; private point: Laya.Vector2 = new Laya.Vector2(); private _ray: Laya.Ray; private _outHitResult: Laya.HitResult; private text: Laya.Text = new Laya.Text(); constructor() { //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = L...
来源: Laya_社区 发布时间: 20200917
...eLoop(1, null, checkHit); var hit = new Laya.RaycastHit(); var point = new Laya.Vector2(); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseM...
来源: Laya_社区 发布时间: 20170915
...t MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private tiledMap: TiledMap; private lay...
来源: Laya_社区 发布时间: 20201230
...//点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(...
来源: Laya2.0_文档 发布时间: 20210715
...//点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(...
来源: Laya2.0_文档 发布时间: 20210715
...ew Laya.Ray(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.St...
来源: Laya_社区 发布时间: 20180820
... */ __proto.loop=function(){ var point=this._parent.getMousePoint(); var mouseX=point.x; var mouseY=point.y; var offsetX=mouseX-this._lastX; var offsetY=mouseY-thi...
来源: Laya_社区 发布时间: 20180720