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

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

121. laya.maths.Matrix3x3_API3.0 [ 69%]

...perties elements DEFAULT Methods clone cloneTo determinant identity invert rotate scale translate transpose createFromMatrix4x4 createFromRotation createFromScaling createFromTranslation createRotationQuaternion forwardLookAt lookAt multiply Constructors constructor new Matrix3x3(createElement?: boo...

来源: Laya3.0_api 发布时间: 20231115

122. 摄像机设置旋转的问题 [ 69%]

...的旋转,如果我使用Laya.Quaternion.cloneTo(camera.transform.localRotation),会失败,如果使用camera.transform.localPosition = Laya.Quaternion.clone(),才会成功,之前我记得你们不是说过尽量避免创建对象吗?直接用cloneTo,摄像机的旋转四元数的值是...

来源: Laya_社区 发布时间: 20170628

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

...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. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法。在这次...

来源: Laya2.0_文档 发布时间: 20210715

124. 想做天空盒但是camera上没有sky这个属性 [ 69%]

...mera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.rotate(new Vector3(10, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //天空盒 BaseMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Handler.create(null, f...

来源: Laya_社区 发布时间: 20181017

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

...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. 材质加载 在单个材质进行加载的时候,我们使用的BaseMaterial.load方法。在这次...

来源: Laya2.0_文档 发布时间: 20210715

126. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 69%]

...Node = null, worldPositionStays: Boolean = true, position: Vector3 = null, rotation: Quaternion = null): Sprite3D; ``` - original :原始精灵。 - parent:父节点。 - worldPositionStays: 是否保持自身世界变换。 - position:世界位置,worldPositionStays为false时生效。 - rotation:...

来源: Laya2.0_文档 发布时间: 20210715

127. VR摄像机怎么设置坐标跟拍摄角度? [ 68%]

...amera.transform.translate(new Laya.Vector3(93, 64, -33)); camera.transform.rotate(new Laya.Vector3(0.05, 155, 0), true, false); camera.clearColor = null; camera.addComponent(VRCameraMoveScript); 我这样跟传统的摄像机一样去设置报错了! 2017-07-07 添加评论 免费帖 --> 分享 ...

来源: Laya_社区 发布时间: 20170707

128. laya.d3.math.Matrix3x3_API3.0 [ 68%]

...perties elements DEFAULT Methods clone cloneTo determinant identity invert rotate scale translate transpose createFromMatrix4x4 createFromRotation createFromScaling createFromTranslation createRotationQuaternion forwardLookAt lookAt multiply Constructors constructor new Matrix3x3(createElement?: boo...

来源: Laya3.0_api 发布时间: 20231102

129. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 68%]

...); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLi...

来源: Laya2.0_文档 发布时间: 20210715

130. 如何实现3d遮罩效果? [ 68%]

...; camera1.transform.translate(new Vector3(0, 0.8, 1.5)); camera1.transform.rotate(new Vector3(-30, 0, 0), true, false); camera2 = new Camera(0, 0.1, 100); scene.addChild(camera2); camera2.clearColor = new Vector4(0.0, 0.0, 1.0, 1.0); camera2.transform.translate(new Vector3(0, 0.8, 1.5)); camera2.tra...

来源: Laya_社区 发布时间: 20170209