大约有 1,695 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1278) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(25) Laya_示例(24) Laya2.0_示例(3)
...(this.txtName); //设置其他玩家角色名称跟随角色模型 var currPosition2:Laya.Vector3 = new Laya.Vector3(this._position.x, 5, this._position.z); this.otherGameScene.viewport.project(currPosition2,this.otherGameScene.projectionViewMatrix,this._outPos); this.txtName.pos(this._outPos.x / La...
来源: Laya_社区 发布时间: 20171010
...uctor Properties _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FRAMEUPDATA_WEBXRINPUT HANDNESS_LEFT HANDNESS_RIGHT Methods addAxisEvent addButtonEvent destroy event hasListener off offAll offAllCaller offAxisEvent offButtonEvent on once Constructors constructo...
来源: Laya3.0_api 发布时间: 20231115
...ypescript static instantiate(original: Sprite3D, parent: Node = null, worldPositionStays: boolean = true, position: Vector3 = null, rotation: Quaternion = null): Sprite3D; ``` - original :原始精灵。 - parent:父节点。 - worldPositionStays: 是否保持自身世界变换。 - position:世界...
来源: Laya2.0_文档 发布时间: 20210715
...RMAL0, ShaderDataType.Vector3] Defined in laya/d3/shader/SubShader.ts:44 a_Position a_Position: [number, Vector4] = [VertexMesh.MESH_POSITION0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:43 a_SimpleTextureParams a_SimpleTextureParams: [number, Vector2] = [VertexMesh.MESH_SIMPLEAN...
来源: Laya3.0_api 发布时间: 20231102
... var enimyPos = enimy; enimyPos.y = 0; var cameraPos = ca.position; cameraPos.y = 0; var enimy2cameradir = JieTools.subVec3(enimyPos, cameraPos); Laya.Vector3.normalize(enimy2cameradir, enimy2cameradir); var outQua = new Laya.Quaternion(); Laya...
来源: Laya_社区 发布时间: 20191017
...oadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15, -1.0, 0.0); this.loadCCDlight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); this.loadCCDlight.range = 6.0; this.loadCCDlight.spo...
来源: Laya_社区 发布时间: 20180515
...ocalScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,{x:0,y:-1,z:-3},5000,Laya.Ease.linearIn); ) 我看也没写错 是这个类不适...
来源: Laya_社区 发布时间: 20180112
...al(spirit3D._childs[i]); } function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord0': Laya.VertexElementUsage.TEXTURECOORDINATE0, 'a_Texcoord1': Laya.VertexElementUsage.TEXTURECOORDINATE1 }; var uniformMap...
来源: Laya_示例 发布时间: 20241119
...获取经纬度报错? // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°)...
来源: Laya_社区 发布时间: 20180402
...幕宽800,BOX1.X=0,那他在世界里的坐标就是0点,摄像机的position.x向右移了2,那屏幕里看到的BOX1.X的位置是向左移了2,那就是说相当于BOX1.X到左边的宽度是200米,右边是800-200=600米? 也就是说在这个时候,BOX1.position.x如果+1,就...
来源: Laya_社区 发布时间: 20180126