大约有 1,692 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1275) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(25) Laya_示例(24) Laya2.0_示例(3)
...ParticleTemplateBase 类实例。 ParticleTemplateBase addParticleArray(position:Float32Array, velocity:Float32Array):void 添加一个粒子 ParticleTemplateBaseProperty Detailsettingspropertypublic var settings:ParticleSetting 粒子配置数据 textureproperty protected var texture:Texture ...
来源: Laya2.0_api 发布时间: 20190513
...置欧拉角出现位置错误 第一个网格在添加刚体后设置position,rotationEuler可设可不设 第二个网格在添加刚体后设置rotationEuler,不设置position 第二个刚体会带有第一个刚体的position,受刚体影响,第二个网格将与第一个网格出现...
来源: Laya_社区 发布时间: 20201127
...上一次X坐标的差值 let speedX = newPos.x - pathItem.item.transform.position.x; //计算与上一次Y坐标的差值 let speedY = newPos.y - pathItem.item.transform.position.y; let angle = 0; //得到差值向量的弧度 angle = Math.atan2(speedY , speedX); //计算与上一次弧度的差值...
来源: Laya_社区 发布时间: 20190524
...器代码如下: ```javascript let simpleShaderVS = ` attribute vec4 a_Position; uniform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; }`; ...
来源: Laya2.0_文档 发布时间: 20210715
...yaCanvas"); if ((sys.platform !== sys.DESKTOP_BROWSER)) { gameCanvas.style.position = "fixed"; } else { gameCanvas.style.position = "static"; } html5Full.toLandscape(); </script> 这边,我知道创建script标签的方法 var body = laya.utils.Browser.window.document.getElementsByTagName(...
来源: Laya_社区 发布时间: 20180129
...eLayaBox - 爱学习 赞同来自: Laya.timer.frameLoop(1, this, this.resetPosition); resetPosition(): void { var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D; aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform...
来源: Laya_社区 发布时间: 20180117
....screenMode = Laya.Stage.SCREEN_NONE; private animate(): void { this._position.x = Math.sin(this.scaleDelta += 0.01); this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPo...
来源: Laya_社区 发布时间: 20180425
...l Implements IVertex Index Properties TRAIL_COLOR TRAIL_OFFSETVECTOR TRAIL_POSITION0 TRAIL_TEXTURECOORDINATE0X TRAIL_TEXTURECOORDINATE0Y TRAIL_TIME0 Accessors vertexDeclaration vertexDeclaration1 vertexDeclaration2 Properties Static TRAIL_COLOR TRAIL_COLOR: number = 5 Defined in laya/d3/core/trail/V...
来源: Laya3.0_api 发布时间: 20231102
...nsole.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.sprite.transform.position,norDir,position) // this.sprite.transform.position = position; this.sprite.transform.localPositionX += norDir.x * 0.017 * this.nSpeed; this.spri...
来源: Laya_社区 发布时间: 20191026
... var value:String = ""; var max:int = this._position_ + len; var c:int, c2:int; // gb2312-encode while (this._position_ < max) { c = _data_.getUint...
来源: Laya_社区 发布时间: 20160606