• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,692 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

121. laya.particle.ParticleTemplateBase [ 85%]

...ParticleTemplateBase 类实例。 ParticleTemplateBase  addParticleArray(position:Float32Array, velocity:Float32Array):void 添加一个粒子 ParticleTemplateBaseProperty Detailsettingspropertypublic var settings:ParticleSetting 粒子配置数据 textureproperty protected var texture:Texture ...

来源: Laya2.0_api 发布时间: 20190513

122. 3D网格添加刚体后设置欧拉角出现位置错误 [ 85%]

...置欧拉角出现位置错误   第一个网格在添加刚体后设置position,rotationEuler可设可不设 第二个网格在添加刚体后设置rotationEuler,不设置position 第二个刚体会带有第一个刚体的position,受刚体影响,第二个网格将与第一个网格出现...

来源: Laya_社区 发布时间: 20201127

123. 如何让3D物体在xy平面上做曲线运动时其z轴旋转角度也跟着变化? [ 84%]

...上一次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

124. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 84%]

...器代码如下: ```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

125. 如何动态在index.html加入script [ 84%]

...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

126. 你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 [ 84%]

...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

127. 1.7.18beta下转换3D坐标不正确 [ 84%]

....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

128. laya.d3.core.trail.VertexTrail_API3.0 [ 84%]

...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

129. 动画混合问题,Avatar动画混合报错. [ 84%]

...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

130. LayaFlash:求ByteArray.jas ->readMultiByte对gb2312的实现翻译 [ 84%]

...      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