大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0018 秒)
...on, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition, Transform3D._tempVector30, this._localPosition); this.localPosition = this._localPosition; } else { Vector3.add(this.position, translation, this._position); this.position = this._position; } } 平移变换方...
来源: Laya3.0_文档 发布时间: 20251010
...ildByName('Scenes').getChildByName('Area').getChildByName(str))).transform.localPosition); } } 四、角色移动 角色移动,实际上就是在间隔很短的时间内,改变角色的位置。在我们的示例中,是通过每40毫秒来循环检查角色行走路线,通过Tween来执行...
来源: Laya3.0_文档 发布时间: 20230303
...sh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosition = this._getRandomPosition(positionRanvge); //随机一个颜色索引 let colorIndex = Math.floor(Math.random() * this._colorNums); //设置节点的 Laya.ENodeCustomData.custom_0 为对应的颜色索引 render...
来源: Laya3.0_文档 发布时间: 20251010