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

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

131. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 71%]

... Laya.VRCamera( 0.03,0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0.3, 0.3, 0.6)); camera.transform.rotate(new Laya.Vector3(-12, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(VRCameraMoveScript); /* var camera = (scene.addChild(new Laya.C...

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

132. 射线BUG [ 71%]

...gScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 1...

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

133. 关于平行光渲染投影问题,求解惑 [ 71%]

...ya.Camera; camera.orthographic = true; camera.transform.translate(new Laya.Vector3(0, 4, 8),false); camera.transform.lookAt(new Laya.Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动...

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

134. rigidBody.applyForce 物体不会移动 [ 71%]

...rite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya.Vector3(0.2, 0, 0); private translateD: Laya.Vector3 = new Laya.Vector3(-0.2,...

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

135. 材质-物理基础渲染材质 [ 71%]

...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' ...

来源: Laya_示例 发布时间: 20241124

136. laya.d3.math.Native.ConchVector4 [ 71%]

...umentationAll Packages | All Classes | Index | Frames No Frames ConchVector4Properties | Methods Packagelaya.d3.math.NativeClasspublic class ConchVector4InheritanceConchVector4 ObjectImplements laya.d3.core.IClone Vector4 类用于创建四维向量。 Public Properties PropertyDefined By ...

来源: Laya2.0_api 发布时间: 20190513

137. ios微信clone特效会导致特效的mesh无法显示 [ 71%]

....Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D ...

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

138. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 71%]

....addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight = scene.addChild(new Laya....

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

139. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 70%]

...节点也跟随移动 this.layaMonkeyParent.transform.translate(new Laya.Vector3(-0.2, 0, 0); (动图3-2) 通过点击按钮,让子节点移动,可以看到父节点并没有移动 this.layaMonkeySon.transform.translate(new Laya.Vector3(-0.2, 0, 0); 四、克隆 关于克隆,LayaAir3D中...

来源: Laya3.0_文档 发布时间: 20241014

140. 有关Laya3D碰撞检测疑问 [ 70%]

...e test { export class Test { private ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>;  private camera: Laya.Camera; private label: Laya.Label; constructor() { L...

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