• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 146 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)

111. 3D物理引擎实现类似constraint方法 [ 56%]

...物理引擎并没有提供这样的机制 我做了一些尝试 自己onUpdate或onLateUpdate函数中不断的修正需要锁定的轴到原始位置,但是效果并不好,估计因为这两个是按frame(帧)调度的更新函数,而物理调度是另一个类似Unity中FixedUpdate函数中...

来源: Laya_社区 发布时间: 20190714

112. 3D物理引擎有没有什么办法可以像unity的constraint那样锁住某些轴的旋转与位移么? [ 56%]

...位移么? 如题,自己用了一些办法想达到这个效果,比如: onUpdate或onLateUpdate里面去修正位置,将需要锁定的轴一直往原位置修正,但是效果是物体一直抖,我想可能要类似fixedUpdate里面做调度就可以了吧,但是laya并没有提供fixedUpda...

来源: Laya_社区 发布时间: 20190714

113. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 55%]

...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

114. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 55%]

...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

115. prefab添加runtime脚本 comp._addComponentInstance is not a function [ 54%]

...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

116. laya.d3.component.Script3D [ 53%]

...时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onUpdate():void 每帧更新时执行 此方法为虚方法,使用时重写覆盖即可 Script3DProtected Methods  MethodDefined By  _onAwake():void[override] Script3D  _onDestroy():void[override] Script3D  _onDisable...

来源: Laya2.0_api 发布时间: 20190513

117. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 53%]

...的移动半径数组 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

118. Laya3D场景加载问题 [ 53%]

...,p30显示出来了;小米note3是黑屏,点屏触发游戏开始,onUpdate中log能正常打出来,中间有UI弹窗也可以弹出。程序正常跑,只是没有显示。

来源: Laya_社区 发布时间: 20190925

119. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 53%]

...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

120. 获取相机renderTexture 作为阴影 的UV [ 52%]

...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