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

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

41. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 81%]

...m.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape = new BoxColliderShape(1, 1, 1); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShape; //设置刚体的质量 rigidBody.mass...

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

42. 3D场景-场景加载 [ 80%]

...ector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera.sky = skyBox;class SceneLoad { constructor() { Laya3D.init(...

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

43. 给模型动态添加脚本报错 [ 80%]

...his.playerGoldArr.push(goldNode);                 goldNode.addComponent(goldItemNode);     报错信息: Uncaught TypeError: Cannot read property 'scene' of null     at goldItemNode._onAdded (libs/laya.core.js:13226)     at goldItemNode._onAdded (libs/laya.d3.js:10592)     ...

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

44. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 80%]

...m.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape = new BoxColliderShape(1, 1, 1); //设置盒子的碰撞形状 rigidBody.colliderShape = boxShape; //设置刚体的质量 rigidBody.mass...

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

45. MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 [ 80%]

...suleMesh(0.5, 1)); var capsuleCollider:Laya.PhysicsCollider = this.capsule.addComponent(Laya.PhysicsCollider);//网格触发器 var capsuleShape:Laya.CapsuleColliderShape = new Laya.CapsuleColliderShape(0.5,1); capsuleCollider.colliderShape = null; capsuleCollider.isTrigger = true; var sphereRigid:L...

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

46. 天空-天空穹 [ 80%]

...camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");cl...

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

47. 3D网格添加刚体后设置欧拉角出现位置错误 [ 80%]

...sform.rotate(new Laya.Vector3(-15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);         camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SOLIDCOLOR;         //方向光         let directionLight = this.scene.addChild(new Laya.DirectionLight());         directi...

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

48. 天空-天空盒 [ 80%]

...camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox...

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

49. 射线检测-射线检测 [ 79%]

... * MeshCollider : 网格碰撞器 */ var sprite3d1MeshCollider = sprite3d1.addComponent(Laya.MeshCollider); sprite3d1MeshCollider.mesh = sprite3d1.meshFilter.sharedMesh; var sprite3d2MeshCollider = sprite3d2.addComponent(Laya.MeshCollider); sprite3d2MeshCollider.mesh = sprite3d2.meshFilter.sharedMes...

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

50. VR场景-VR场景 [ 79%]

...r3(0, 2, 0)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); vrCamera.sky = skyBox; class VRScene2 { constructor() { Laya3D.i...

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