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

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

121. 求计算三角形夹角的Laya代码 [ 91%]

.../向量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

122. laya.d3.utils.Picker [ 91%]

...角形和碰撞距离。 Picker  rayIntersectsTriangle(ray:Ray, vertex1:Vector3, vertex2:Vector3, vertex3:Vector3):Number[static] 计算射线和三角形碰撞并返回碰撞距离。 PickerConstructor DetailPicker()Constructorpublic function Picker() 创建一个 Picker 实例。 Method Detailca...

来源: laya_api 发布时间: 20170929

123. laya.d3.math.Quaternion [ 91%]

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

124. 高级应用-渲染纹理 [ 91%]

...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_示例 发布时间: 20240929

125. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 91%]

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

126. laya.d3.core.scene.ITreeNode [ 91%]

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

127. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 91%]

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

128. laya.d3.core.particleShuriKen.module.shape.ShapeUtils [ 91%]

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

129. laya.d3.core.particleShuriKen.module.shape.ShapeUtils [ 91%]

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

130. 像素线 · LayaAir3.0文档 · LAYABOX [ 91%]

...始点颜色 * @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_文档 发布时间: 20240624