大约有 648 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)
Laya_社区(363) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(13) laya_api(5) Laya2.0_api(4)
..._NONE; Laya.Stat.show(); this.tmpVector = new Laya.Vector3(0, 0, 0); this.scene = Laya.stage.addChild(new Laya.Scene3D()); //初始化照相机 let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.tra...
来源: Laya_社区 发布时间: 20201127
...rimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); sphere.transform.position...
来源: Laya2.0_文档 发布时间: 20210714
...anager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) && this.kinematicSphere.transform.translate(new Lay...
来源: Laya2.0_文档 发布时间: 20210715
...anager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) && this.kinematicSphere.transform.translate(new Lay...
来源: Laya2.0_文档 发布时间: 20210714
...Laya.RaycastHit; constructor() { super(); this.ray = new Laya.Ray(new Laya.Vector3(0,0,0),new Laya.Vector3(0,-2,0)); this.outHitInfo = new Laya.RaycastHit(); } /*覆写3D组件方法,指3D对象加载组件时执行 *owner:此组件所属的3D对象 */ public _load(owner:Laya.Sprite3D):void{ //...
来源: Laya_社区 发布时间: 20171113
...Child(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // var directionLight = scene.a...
来源: Laya_社区 发布时间: 20180126
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' ...
来源: Laya_示例 发布时间: 20241117
...距离。 * @param isLocal 是否局部空间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector...
来源: Laya3.0_文档 发布时间: 20241014
...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
... scene.addChild(new Laya.PointLight()); pointLight.ambientColor = new Laya.Vector3(0.8, 0.8, 0.8); pointLight.specularColor = new Laya.Vector3(2.0, 2.0, 0.9); pointLight.diffuseColor = new Laya.Vector3(1, 1, 1); pointLight.transform.translate(new Laya.Vector3(0, 30, 0)); pointLight.attenuation = new...
来源: Laya_社区 发布时间: 20170714