大约有 416 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0052 秒)
Laya_社区(156) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(53) Laya_示例(28) laya_api(14) Laya3.0_文档(8) Laya2.0_示例(5)
...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
...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
... * 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
...script //红色球体设置 //创建刚体碰撞器 var rigidBody = sphere.addComponent(Laya.Rigidbody3D); //创建球形碰撞器 rigidBody.isKinematic = true; //设置可以与其发生碰撞的碰撞组 rigidBody.canCollideWith = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER1 | Laya.Physi...
来源: Laya2.0_文档 发布时间: 20210715
...script //红色球体设置 //创建刚体碰撞器 var rigidBody = sphere.addComponent(Laya.Rigidbody3D); //创建球形碰撞器 rigidBody.isKinematic = true; //设置可以与其发生碰撞的碰撞组 rigidBody.canCollideWith = Laya.Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER1 | Laya.Physi...
来源: Laya2.0_文档 发布时间: 20210715
...色球体设置 //创建刚体碰撞器 var rigidBody:Rigidbody3D = sphere.addComponent(Rigidbody3D); //创建球形碰撞器 rigidBody.isKinematic = true; //设置可以与其发生碰撞的碰撞组 rigidBody.canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_CUSTOMFILTER1 | Physics3DUtils.COLLI...
来源: Laya2.0_文档 发布时间: 20210715
...小泽 จุ บ • 2020-10-11 15:50 var rigidBody:Laya.Rigidbody= image.addComponent(Laya.Rigidbody);。addComponent是添加组件
来源: Laya_社区 发布时间: 20201010
...e添加PathFind组件 var pathFingding: Laya.PathFind = this.terrainSprite.addComponent(Laya.PathFind) as Laya.PathFind; pathFingding.setting = { allowDiagonal: true, dontCrossCorners: false, heuristic: PathFinding.core.Heuristic.manhattan, weight: 1 }; var aStarMap: Laya.Texture2D = Laya.Loader.get...
来源: Laya_社区 发布时间: 20180309