大约有 648 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0052 秒)
Laya_社区(363) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(13) laya_api(5) Laya2.0_api(4)
Laya.Vector3.equals方法比较两个方向相反的向量,结果也是相等? 两个方向相反、长度相等的向量,用Laya.Vector.equals方法比较,结果为相等,比如: var a = new Laya.Vector3(1,0,0); var b = new Laya.Vector3(-1,0,0); console.log(Laya.Vector3.equals(a, b)); ...
来源: Laya_社区 发布时间: 20180525
...始点颜色 * @param endColor 结束点颜色 */ addLine(startPosition: Vector3, endPosition: Vector3, startColor: Color, endColor: Color): void { (this._render as PixelLineRenderer).addLine(startPosition, endPosition, startColor, endColor); } 3.3 Tool.linearModel() 通常我们可以利用addLine(...
来源: Laya3.0_文档 发布时间: 20241014
...谢 class MultiTouch{ private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){ Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); //初始化引擎 Laya3D.init(0, 0); La...
来源: Laya_社区 发布时间: 20190605
...his.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 */ let sphere = new Laya.Sprite3D; let sphereMesh = sphere.addComponent(Laya.MeshFilter); let sphereRender = sphere.addCompone...
来源: Laya3.0_文档 发布时间: 20241014
...ene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, co...
来源: Laya_社区 发布时间: 20200903
...in laya/d3/physicsCannon/CannonContactPoint.ts:19 距离。 normal normal: Vector3 = new Vector3() Defined in laya/d3/physicsCannon/CannonContactPoint.ts:21 法线。 positionOnA positionOnA: Vector3 = new Vector3() Defined in laya/d3/physicsCannon/CannonContactPoint.ts:23 碰撞器A的碰撞点。 ...
来源: Laya3.0_api 发布时间: 20231102
...= 0 Defined in laya/d3/physics/ContactPoint.ts:19 距离。 normal normal: Vector3 = new Vector3() Defined in laya/d3/physics/ContactPoint.ts:21 法线。 positionOnA positionOnA: Vector3 = new Vector3() Defined in laya/d3/physics/ContactPoint.ts:23 碰撞器A的碰撞点。 positionOnB positionOnB:...
来源: Laya3.0_api 发布时间: 20231115
... = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); // 生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane = scene.ad...
来源: Laya_社区 发布时间: 20170314
...h.createBox(0.5, 0.5, 0.5))) as MeshSprite3D; box.transform.position = new Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Vector3(0, 45, 0), false, false); //球体 var sphere:MeshSprite3D = sprite3D.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(0.25, 20, 20))) as MeshSprite3D; sphere.tran...
来源: Laya2.0_文档 发布时间: 20210715
...new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); var camera2 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera2.clearColor = new Laya.Vector4(0.0, 0.0, 1.0, 1.0); camera2.transform.tr...
来源: Laya_示例 发布时间: 20241117