大约有 248 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0039 秒)
Laya_社区(142) Laya_示例(42) Laya3.0_api(21) Laya2.0_api(17) laya_api(15) Laya2.0_文档(7) Laya3.0_文档(4)
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight....
来源: Laya_社区 发布时间: 20171127
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vecto...
来源: Laya_示例 发布时间: 20241117
...ape.ts:16 形状方向_Z轴正向 Accessors localOffset get localOffset(): Vector3 set localOffset(value: Vector3): void Inherited from CannonColliderShape.localOffset Defined in laya/d3/physicsCannon/shape/CannonColliderShape.ts:119 Shape的本地偏移。 Returns Vector3 Inherited from CannonColli...
来源: Laya3.0_api 发布时间: 20231102
...e3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), tr...
来源: Laya_社区 发布时间: 20191209
...ial.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import l...
来源: Laya_社区 发布时间: 20170209
...rt ShurikenParticleMaterial = Laya.ShurikenParticleMaterial; import Vector2 = Laya.Vector2; import Vector3 = Laya.Vector3; import Vector4 = Laya.Vector4; import Particle3...
来源: Laya_社区 发布时间: 20170605
...let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new Laya.Vector3(0, 0.9, 0)); obj.addComponent(BoxControlScript); //旋转方向与角度设置 //var vect = new Laya.Vector3(0,1,0); //每10毫秒旋转一次 //Laya.timer.loop(10,null,...
来源: Laya_社区 发布时间: 20200611
...new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Vector3(0.6, 0.6, 0.6); directionLight.direction = new Vector3(1, -1, 0); 2017-03-20 0 2 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20170319
...ya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); camera.clearColor = null; //添加自定义模型 var mesh = scene.addChild(new Laya.Sprite3D.load("res...
来源: Laya_社区 发布时间: 20170718
...项目开发更高效。Laya3D.init(0, 0, true); this._position = new Laya.Vector3(0, 0, 0); this._upVector3 = new Laya.Vector3(0, 1, 0); this._tarPosition = new Laya.Vector3(0, 0, 0); this._finalPosition = new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion(); this.index = 0; this.cur...
来源: Laya_示例 发布时间: 20241117