大约有 428 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0043 秒)
Laya_社区(163) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(58) Laya_示例(28) laya_api(14) Laya3.0_文档(8) Laya2.0_示例(5)
...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
...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
...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
...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
...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
...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
...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
...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
... * 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
...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