大约有 648 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0053 秒)
Laya_社区(363) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(13) laya_api(5) Laya2.0_api(4)
...w Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有delta 属性 } } } new laya.In...
来源: Laya_社区 发布时间: 20170321
...new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2 = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera2.clearColor = new Laya.Vect...
来源: Laya2.0_文档 发布时间: 20210715
...() { y = y + 1; camera.transform.lookAt(model.transform.position, new Laya.Vector3(0, 1, 0), false); camera.transform.rotate(new Laya.Vector3(0, y, 3), false, false); }); 我想让摄像机围绕一个模型旋转做动画,用Tween没有起到作用. 用函数loop试了一下,设置lookAt无论...
来源: Laya_社区 发布时间: 20170907
...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/BoxShape.ts:67 用于生成粒子初始位置...
来源: Laya3.0_api 发布时间: 20231115
...ORMBUFFER Methods clear getPropertyArray setNumberArray setVector2Array setVector3Array setVectorArray Constructors constructor new MaterialInstancePropertyBlock(): MaterialInstancePropertyBlock Defined in laya/d3/core/render/command/MaterialInstancePropertyBlock.ts:33 Returns MaterialInstanceProper...
来源: Laya3.0_api 发布时间: 20231115
...D) rig.enabled=false; rig.enabled=true; rig.linearVelocity = new Laya.Vector3(-5,0,0) Laya.timer.frameLoop(1,this,()=>{ rig.linearVelocity= new Laya.Vector3(rig.linearVelocity.x,0,rig.linearVelocity.z) console.log("rig.linearVelocity==",rig.linearVelocity); }) 附件 : --> LayaPro.rar 201...
来源: Laya_社区 发布时间: 20191202
...NE 微信 Supermang42 赞同来自: 改變layaMonkey的localPosition = new Vector3( 1, 1, 0 ); 可以類似這樣寫 var Mesh_Boss = new MeshSprite3D( Mesh.load( Consts.Mesh_Boss01 ) ) as MeshSprite3D; Mesh_Boss.transform.localPosition = new Vector3( -7.36, -1.03, 0 ); 2017-07-26 0 0 分享 ...
来源: Laya_社区 发布时间: 20170726
...cene3d; })); this._ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); } onMouseDown() { this.point.x = Laya.stage.mouseX; this.point.y = Laya.stage.mouseX; //产生射线 ...
来源: Laya_社区 发布时间: 20220506
...laya/components/Component.ts:86 Returns boolean boundsMax get boundsMax(): Vector3 set boundsMax(value: Vector3): void Defined in laya/d3/component/Volume/Volume.ts:69 primitive包围盒max Returns Vector3 Defined in laya/d3/component/Volume/Volume.ts:76 primitive包围盒max Parameters value: Vecto...
来源: Laya3.0_api 发布时间: 20231115
...arColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera2.clearColor = new Ve...
来源: Laya2.0_文档 发布时间: 20210715