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

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

501. 2.8.0上默认模型不能产生和接受阴影 [ 69%]

....DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); directionLight.shadowMode = Laya.ShadowMode.SoftLow; directionLight.shadowDistance = 100; directionLight.shadowNearPlane = 1...

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

502. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 69%]

...点击按钮切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.po...

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

503. laya.d3.core.render.command.CommandBuffer_API3.0 [ 69%]

...setGlobalNumber setGlobalTexture setGlobalVector setGlobalVector2 setGlobalVector3 setRenderTarget setShaderDataColor setShaderDataInt setShaderDataMatrix setShaderDataNumber setShaderDataTexture setShaderDataVector setShaderDataVector2 setShaderDataVector3 setShaderDefine Constructors constructor n...

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

504. laya.d3.utils.Physics [ 69%]

...简单物理检测。 Public Properties PropertyDefined By  gravity : Vector3[static] 重力。PhysicsPublic Methods  MethodDefined By  Physics()Physics  rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number, layer:int = 0):void[static] 在场景中投下可与所有碰撞器碰撞的一...

来源: laya_api 发布时间: 20170929

505. laya 2.4 linearVelocity问题 [ 69%]

...D)   rig.enabled=false;  rig.enabled=true; rig.linearVelocity = new Laya.Vector3(-5,0,0) Laya.timer.frameLoop(1,this,()=>{   rig.linearVelocity= new Laya.Vector3(rig.linearVelocity.x,0,rig.linearVelocity.z) console.log("rig.linearVelocity==",rig.linearVelocity); }) 附件 : --> LayaPro.rar 201...

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

506. laya3d发布小游戏报错 [ 69%]

...Number 去掉设置背景色的代码就好了camera.clearColor = new Laya.Vector3(0.5, 0.5, 0.6); laya版本1.7.19 设备 小米note3 微信版本 6.7.2 安卓版本7.1.1 其他设备没进行测试 2018-09-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

507. laya.d3.resource.models.Mesh_API3.0 [ 69%]

...| Uint16Array | Uint32Array 网格索引。 getNormals getNormals(normals: Vector3[]): void Defined in laya/d3/resource/models/Mesh.ts:598 拷贝并填充法线数据至数组。 remark 该方法为拷贝操作,比较耗费性能。 Parameters normals: Vector3[] 法线数组。 Returns void getPos...

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

508. 请问3D平行光产生的投影 如何修改颜色深浅 [ 69%]

...mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不会产生投影) this.Light.shadowDistance = 19; //生成阴影...

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

509. 关于2.0.1版本,rayCastAll方法有bug的问题 [ 69%]

...8; i++) { let radis = i * 2 * Math.PI / 8; rays[i] = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(Math.cos(radis), 0, Math.sin(radis))); let hitResult = new Array(); this.mainScene.physicsSimulation.rayCastAll(rays[i], hitResult); console.log(rays[i], hitResult); }我注意到2.0.0的时...

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

510. Laya.Sprite3D如何设置位置 [ 69%]

...我都写明了都搜索不到) layaMonkey.transform.translate( new Laya.Vector3(100,500,100)); layaMonkey.transform.position = new Laya.Vector3(100,500,100); 2018-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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