大约有 14 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数,我的应用场景是在2d背景下,显示3D人物。,在做了坐标映射convertScreenCoordToOrthographicCoord 后,发现定位的...
来源: Laya_社区 发布时间: 20171117
... export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getComponent(Laya.CharacterController);...
来源: Laya3.0_文档 发布时间: 20251010
...ture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;...
来源: Laya_社区 发布时间: 20170505
...路径三、地形处理3.1 高度图3.2 网格地形3D精灵 MeshTerrainSprite3D3.3 更新世界矩阵3.4 得到整数的网格索引3.5 得到世界坐标系下的真实坐标3.6 初始化目标点四、角色移动五、最终代码3D寻路 一、概述 本篇将讲解3D场景的寻路问题,...
来源: Laya3.0_文档 发布时间: 20230303
...ic title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NONE; var imageData = this.canvasWrapText({c...
来源: Laya_社区 发布时间: 20180814
...rayCast(ray2, rayCastHit2, 300); if(rayCastHit2.sprite3D) { //这里取碰撞点的y值给角色重新赋值 var currPosition:Vector3 = new Vector3(_position.x, rayCastHit2.position.y, _position.z); roleModel.transform.position = currP...
来源: Laya_社区 发布时间: 20170828
...url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: ...
来源: Laya_示例 发布时间: 20251130
...以查看官方示例([demo地址]())。 ```typescript var material = meshSprite3D.meshRenderer.material; //法线贴图 Laya.Texture2D.load(normalMapUrl[i], Laya.Handler.create(this, function(texture) { //设置发现贴图 material.normalTexture = texture; })); ``` (图5) ##### 高...
来源: Laya2.0_文档 发布时间: 20210715
...以查看官方示例([demo地址]())。 ```typescript var material = meshSprite3D.meshRenderer.material as Laya.BlinnPhongMaterial; //法线贴图 Laya.Texture2D.load(normalMapUrl[i], Laya.Handler.create(this, function(texture) { //设置发现贴图 material.normalTexture = texture; })); ``` )。 ```typescript var material:BlinnPhongMaterial = meshSprite3D.meshRenderer.material as BlinnPhongMaterial; //法线贴图 Texture2D.load(normalMapUrl[i], Handler.create(this, function(texture:Texture2D):void { //设置发现贴图 material.normalTexture = texture; })); ``` ![](...
来源: Laya2.0_文档 发布时间: 20210714