大约有 106 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
...设置为0,否则会直接掉下去。 > > 需要受力而运动的刚体不要设置为静力学或者运动学类型,否则会导致无法通过力来使其运动起来。 ##### 第一步:  (图22-3) 如图22-3所示,我们为一个叫box的节点添加了刚体和矩...
来源: Laya2.0_文档 发布时间: 20210714
...nts/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Retu...
来源: Laya3.0_api 发布时间: 20231115
...nts/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Retu...
来源: Laya3.0_api 发布时间: 20231115
...ends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), ###### 添加物理脚本 只有为节点添加了我们自定义的脚本,我们...
来源: Laya2.0_文档 发布时间: 20210715
...nts/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Retu...
来源: Laya3.0_api 发布时间: 20231115
...his.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 * 此方法为虚方法,使用时重写覆盖即可 */ onUpdate(): void { if (!this.target || !this.camera) return; this.target.transform.position.vsub(this.cu...
来源: Laya3.0_文档 发布时间: 20251010