大约有 384 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0037 秒)
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { // 平移cube this.cube.transform.translate(this.translate, false); } } 效果如图1-1所示,其中1是原位置,2是平移后的位置。 (图1-1) 2. 旋转变换 关于旋转,在Transform3D中提...
来源: Laya3.0_文档 发布时间: 20241014
...Speed upperAngle Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new RevoluteJoint(): RevoluteJoint Inherited from JointBase.constructor Overrides Component.construc...
来源: Laya3.0_api 发布时间: 20231115
...改了重力的数值,球和地面都设置了弹力 TestScript2 onAwake this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComp...
来源: Laya_社区 发布时间: 20200512
Laya3.0 获取物体初始位置错误 initPos在onAwake中获取了rabbit的初始位置。 rabbit在移动时,initPos的值也会跟着变化,。 我只在onAwake中对initPos赋值了,为什么initPos的值会随着rabbit的移动而改变。 这是bug,还是我获取的方式不对。 ...
来源: Laya_社区 发布时间: 20230404
... restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new CircleCollider(): CircleCollider Inherited from ColliderBase.constructor Overrides Component.con...
来源: Laya3.0_api 发布时间: 20231115
... restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new EdgeCollider(): EdgeCollider Inherited from ColliderBase.constructor Overrides Component.constru...
来源: Laya3.0_api 发布时间: 20231115
...n shadowStrength Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new Light(): Light Overrides Component.constructor Defined in laya/d3/core/light/Light.ts:177 创建...
来源: Laya3.0_api 发布时间: 20231115
...upperTranslation Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new PrismaticJoint(): PrismaticJoint Inherited from JointBase.constructor Overrides Component.constr...
来源: Laya3.0_api 发布时间: 20231115
...tution width x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new BoxCollider(): BoxCollider Inherited from ColliderBase.constructor Overrides Component.construct...
来源: Laya3.0_api 发布时间: 20231115
... restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new PolygonCollider(): PolygonCollider Inherited from ColliderBase.constructor Overrides Component.c...
来源: Laya3.0_api 发布时间: 20231115