大约有 654 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(365) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(17) laya_api(5) Laya2.0_api(4)
...ddChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Laya.Vector3(1.6, 1.6, 1.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //加载到场景 s...
来源: Laya_社区 发布时间: 20180108
....addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight = scene.addChild(new Laya....
来源: Laya_社区 发布时间: 20170807
...e = Laya.stage.addChild(new Laya.Scene3D()); scene.ambientColor = new Laya.Vector3(1, 1, 1); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6.2, 10.5)); camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addCompone...
来源: Laya_社区 发布时间: 20191112
...neTo normalize createPlaneBy3P Constructors constructor new Plane(normal?: Vector3, d?: number): Plane Defined in laya/d3/math/Plane.ts:16 创建一个 Plane 实例。 Parameters Default value normal: Vector3 = new Vector3 平面的向量 Default value d: number = 0 平面到原点的距离 Returns ...
来源: Laya3.0_api 发布时间: 20231115
....Camera(0, 0.1, 100) ) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D ...
来源: Laya_社区 发布时间: 20220721
...bPoints createfromPoints Constructors constructor new BoundSphere(center?: Vector3, radius?: number): BoundSphere Defined in laya/d3/math/BoundSphere.ts:30 创建一个 BoundSphere 实例。 Parameters Default value center: Vector3 = new Vector3 包围球的中心。 Default value radius: number = 0...
来源: Laya3.0_api 发布时间: 20231115
... Laya.VRCamera( 0.03,0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0.3, 0.3, 0.6)); camera.transform.rotate(new Laya.Vector3(-12, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(VRCameraMoveScript); /* var camera = (scene.addChild(new Laya.C...
来源: Laya_社区 发布时间: 20170707
...ddChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vec...
来源: Laya2.0_文档 发布时间: 20210714
...h.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture...
来源: Laya_社区 发布时间: 20190717
...碰撞总是会穿墙,求解决方法 this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.scene.physi*Simulation.rayCast(this.ray, this.outHitInfo, 1) 角色侧面进入碰撞this.outHitInfo没有碰撞信息,正面进入碰撞才有 this.capsuleCollider = new Laya....
来源: Laya_社区 发布时间: 20210306