大约有 146 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...物理引擎并没有提供这样的机制 我做了一些尝试 自己在onUpdate或onLateUpdate函数中不断的修正需要锁定的轴到原始位置,但是效果并不好,估计因为这两个是按frame(帧)调度的更新函数,而物理调度是在另一个类似Unity中FixedUpdate函数中...
来源: Laya_社区 发布时间: 20190714
...位移么? 如题,自己用了一些办法想达到这个效果,比如: 在onUpdate或onLateUpdate里面去修正位置,将需要锁定的轴一直往原位置修正,但是效果是物体一直在抖,我想可能要在类似fixedUpdate里面做调度就可以了吧,但是laya并没有提供fixedUpda...
来源: Laya_社区 发布时间: 20190714
...s = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.l...
来源: Laya2.0_文档 发布时间: 20210715
...s = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.l...
来源: Laya2.0_文档 发布时间: 20210715
...5) at GameControl.createBox (GameControl.js:54) at GameControl.onUpdate (GameControl.js:39) at TimerHandler.__proto.run (laya.core.js:7533) at Timer.__proto._update (laya.core.js:7271) at Stage.__proto._updateTimers (laya.core.js:31106) at Stage.__proto.render (la...
来源: Laya_社区 发布时间: 20190716
...时执行 此方法为虚方法,使用时重写覆盖即可 Script3D onUpdate():void 每帧更新时执行 此方法为虚方法,使用时重写覆盖即可 Script3DProtected Methods MethodDefined By _onAwake():void[override] Script3D _onDestroy():void[override] Script3D _onDisable...
来源: Laya2.0_api 发布时间: 20190513
...的移动半径数组 public var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/In...
来源: Laya2.0_文档 发布时间: 20210714
...,p30显示出来了;小米note3是黑屏,点屏触发游戏开始,onUpdate中log能正常打出来,中间有UI弹窗也可以弹出。程序在正常跑,只是没有显示。
来源: Laya_社区 发布时间: 20190925
...t; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y); var spr= this.owner as Laya.Sprite; spr.localToGlobal(playerPos); var _x=pl...
来源: Laya_社区 发布时间: 20231123
...apTex, v_shadow_data1.xy).rgb); ts代码设置u_ShadowMapTex onUpdate(){ this.ShadowCamera.transform.lookAt(new Vector3(0,0,0), new Vector3(0,1,0), false); let v:Matrix4x4 = this.ShadowCamera.viewMatrix; let p:Matrix4x4 = this.S...
来源: Laya_社区 发布时间: 20200229