大约有 919 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0051 秒)
Laya_社区(468) Laya3.0_api(134) Laya2.0_文档(98) laya_api(88) Laya2.0_api(75) Laya_示例(42) Laya3.0_文档(14)
.../向量BA var CA;//向量CA var cosA;//角A余弦 var jA;//角A A=new Laya.Vector3(a1,a2,a3); B=new Laya.Vector3(b1,b2,b3); C=new Laya.Vector3(c1,c2,c3); BA=new Laya.Vector3(a1-b1,a2-b2,a3-b3); CA=new Laya.Vector3(a1-c1,a2-c2,a3-c3); cosA= ((a1-b1)*(a1-c1)+(a2-b2)*(a2-c2)+(a3-b3)*(a3-c3))/(Math.sqrt...
来源: Laya_社区 发布时间: 20191223
...角形和碰撞距离。 Picker rayIntersectsTriangle(ray:Ray, vertex1:Vector3, vertex2:Vector3, vertex3:Vector3):Number[static] 计算射线和三角形碰撞并返回碰撞距离。 PickerConstructor DetailPicker()Constructorpublic function Picker() 创建一个 Picker 实例。 Method Detailca...
来源: laya_api 发布时间: 20170929
...loneTo(destObject:*):void 克隆。 Quaternion createFromAxisAngle(axis:Vector3, rad:Number, out:Quaternion):void[static] 从指定的轴和角度计算四元数 Quaternion createFromMatrix4x4(mat:Matrix4x4, out:Quaternion):void[static] 从旋转矩阵计算四元数 Quaternion createFromYa...
来源: Laya2.0_api 发布时间: 20190513
...dChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-10, 0, 0), true, false); camera.addComponent(CameraMoveScript); var renderTargetCamera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); renderTargetCamera.transfo...
来源: Laya_示例 发布时间: 20241124
...scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们...
来源: Laya2.0_文档 发布时间: 20210715
...(boundFrustum:BoundFrustum, testVisible:Boolean, flags:int, cameraPosition:Vector3, projectionView:Matrix4x4):voidITreeNode cullingShadowObjects(lightBoundFrustum:Vector.<BoundFrustum>, splitShadowQueues:Vector.<RenderQueue>, testVisible:Boolean, flags:int, scene:Scene):voidITreeNode...
来源: laya_api 发布时间: 20170929
...scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,我们...
来源: Laya2.0_文档 发布时间: 20210715
...dDefined By ShapeUtils()ShapeUtils _randomPointInsideHalfUnitBox(out:Vector3, rand:Rand = null):void[static] ShapeUtils _randomPointInsideUnitArcCircle(arc:Number, out:Vector2, rand:Rand = null):void[static] ShapeUtils _randomPointInsideUnitCircle(out:Vector2, rand:Rand = null):void[stat...
来源: laya_api 发布时间: 20170929
...dDefined By ShapeUtils()ShapeUtils _randomPointInsideHalfUnitBox(out:Vector3, rand:Rand = null):void[static] ShapeUtils _randomPointInsideUnitArcCircle(arc:Number, out:Vector2, rand:Rand = null):void[static] ShapeUtils _randomPointInsideUnitCircle(out:Vector2, rand:Rand = null):void[stat...
来源: Laya2.0_api 发布时间: 20190513
...始点颜色 * @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