大约有 1,709 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1284) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(33) Laya_示例(24) Laya2.0_示例(3)
...个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, 0)) let p...
来源: Laya_社区 发布时间: 20200617
...ox.getChildAt(0) as Laya.Sprite3D; asteroidBox.transform.position = new Laya.Vector3(Strong.rangeRandomFloat(-5, 5), 0, 15.4); //asteroidBox.transform.position = new Laya.Vector3(0, 0, 7); // asteroid.transform.rotate(new Laya.Vector3( ...
来源: Laya_社区 发布时间: 20191115
...hell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new SphereShape(): SphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:14 创建一个 SphereShape 实例。 Returns S...
来源: Laya3.0_api 发布时间: 20231115
...hell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new HemisphereShape(): HemisphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:15 创建一个 HemisphereShape 实...
来源: Laya3.0_api 发布时间: 20231115
...mitiveMesh.createSphere(1)); this.scene1.addChild(ball); ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体 ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderShape = new L...
来源: Laya_社区 发布时间: 20190506
...ompile_fog #include "UnityCG.cginc" struct appdata { float4 vertex : POSITION; float2 uv : TEXCOORD0; float2 uv2 : TEXCOORD1; }; struct v2f { float2 uv : TEXCOORD0; float2 uv2 : TEXCOORD1; UNITY_FOG_COORDS(1) float4 vertex : SV_POSITION; }; sampler2D _MainTex; float4 _MainTex_ST; v2f ...
来源: Laya_社区 发布时间: 20190422
...rties enable randomDirection shapeType x y z Methods clone cloneTo generatePositionAndDirection Constructors constructor new BoxShape(): BoxShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/BoxShape.ts:16 创建一个 BoxShape 实例。 Returns BoxShape Prop...
来源: Laya3.0_api 发布时间: 20231115
... 目前<canvas>标签时laya自动生成的,生成时的css是: position: absolute; left: 0px; top: 0px; background: rgb(255, 255, 255); transform-origin: 0px 0px 0px; transform: matrix(0.8, 0, 0, 0.8, 0, 0); 但我想把该canvas放进一个div中,然后把div在页面上...
来源: Laya_社区 发布时间: 20171123
...ed By localMatrix : Matrix4x4 获取局部矩阵。 Transform3D localPosition : Vector3 获取局部位置。 Transform3D localPositionX : Number 获取局部位置X轴分量。 Transform3D localPositionY : Number 获取局部位置Y轴分量。 Transform3D localPositionZ : Number 获...
来源: Laya2.0_api 发布时间: 20190513
...w Laya.CompoundColliderShape(); this.cube.transform.localPosition = new Laya.Vector3(); } let pos = this.cubeP.transform.position; pos.z += dis; this.cubeP.transform.position = pos; if(this.cube.transform.localPosition.z !...
来源: Laya_社区 发布时间: 20200223