大约有 1,709 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1284) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(33) Laya_示例(24) Laya2.0_示例(3)
...置欧拉角出现位置错误 第一个网格在添加刚体后设置position,rotationEuler可设可不设 第二个网格在添加刚体后设置rotationEuler,不设置position 第二个刚体会带有第一个刚体的position,受刚体影响,第二个网格将与第一个网格出现...
来源: Laya_社区 发布时间: 20201127
...ParticleTemplateBase 类实例。 ParticleTemplateBase addParticleArray(position:Float32Array, velocity:Float32Array):void 添加一个粒子 ParticleTemplateBaseProperty Detailsettingspropertypublic var settings:ParticleSetting 粒子配置数据 textureproperty protected var texture:Texture ...
来源: laya_api 发布时间: 20170929
...Defined By identifier : int[read-only] 获取唯一识别ID。 Touch position : Vector2[read-only] 获取触摸点的像素坐标。 TouchProperty Detailidentifierpropertyidentifier:int [read-only] 获取唯一识别ID。 Implementation public function get identifier():intpositionpr...
来源: Laya2.0_api 发布时间: 20190513
...ParticleTemplateBase 类实例。 ParticleTemplateBase addParticleArray(position:Float32Array, velocity:Float32Array):void 添加一个粒子 ParticleTemplateBaseProperty Detailsettingspropertypublic var settings:ParticleSetting 粒子配置数据 textureproperty protected var texture:Texture ...
来源: Laya2.0_api 发布时间: 20190513
...上一次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