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

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

401. 射线检测报错,outHitInfo.sprite3D=null; [ 75%]

... public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); }  private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Lay...

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

402. 挂载物体的3D变换问题 [ 75%]

...prite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role.getChildAt(0).addChild(cylinder3D); this.ani.linkSprite3D("weaponEffect",cylind...

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

403. 阴影太浓怎么变淡?看到说directlight.ambientColor,但这ambientColor属性没有 [ 75%]

...te3D).meshRender.material as Laya.StandardMaterial; mat.ambientColor = new Vector3(0.5,0.5,0.5); 这样确实阴影变淡了,可地面也变色了。。。怎么办?我只要阴影变淡,不想其它的变色 2018-03-20 0 1 分享 微博 QZONE 微信 qian 赞同来自: http://layaair.ldc.layab...

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

404. laya.d3.core.light.LightSprite [ 75%]

...: Boolean[read-only] 获取在场景中是否激活。 Sprite3D  color : Vector3 灯光颜色。 LightSprite componentsCount : int[read-only] 获得组件的数量。 Sprite3D destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node  diffuseColor : Vector3 获取...

来源: laya_api 发布时间: 20170929

405. PBR标准材质实时阴影渲染问题 [ 75%]

...; // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node)...

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

406. 射线BUG [ 75%]

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

407. laya.d3.terrain.TerrainChunk [ 74%]

...ing, detailUrl2:String, detailUrl3:String, detailUrl4:String, ambientColor:Vector3, diffuseColor:Vector3, specularColor:Vector4, sx1:Number = 1, sy1:Number = 1, sx2:Number = 1, sy2:Number = 1, sx3:Number = 1, sy3:Number = 1, sx4:Number = 1, sy4:Number = 1):voidTerrainChunk callLater(method:Function...

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

408. 在没有碰撞条件情况下,为何会撞歪物体,导致旋转角度改变? (附源码Laya+Unity) [ 74%]

...aya.Sprite3D;         asteroidBox.transform.position = new Laya.Vector3(Strong.rangeRandomFloat(-5, 5), 0, 15.4);         //asteroidBox.transform.position = new Laya.Vector3(0, 0, 7);         // asteroid.transform.rotate(new Laya.Vector3(         //   ...

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

409. laya.d3.physics.shape.CompoundColliderShape_API3.0 [ 74%]

...ape.ts:18 形状方向_Z轴正向 Accessors localOffset get localOffset(): Vector3 set localOffset(value: Vector3): void Inherited from CompoundColliderShape.localOffset Defined in laya/d3/physics/shape/ColliderShape.ts:127 Shape的本地偏移。 Returns Vector3 Inherited from CompoundColliderShape...

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

410. laya.d3.physics.shape.CylinderColliderShape_API3.0 [ 74%]

...。 Parameters value: number Returns void localOffset get localOffset(): Vector3 set localOffset(value: Vector3): void Inherited from CompoundColliderShape.localOffset Defined in laya/d3/physics/shape/ColliderShape.ts:127 Shape的本地偏移。 Returns Vector3 Inherited from CompoundColliderShape.l...

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