大约有 80 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0040 秒)
...(null, (sprite:Laya.Sprite3D) => { this.mScene.addChild(sprite); sprite.transform.translate(new Laya.Vector3(-0.3, 0, 0)); })); 报错信息laya.d3.js:6573 Uncaught TypeError: Cannot set property 'x' of undefined at AnimationTransform3D.get localRotationEuler [as localRotationEuler] (lay...
来源: Laya_社区 发布时间: 20200107
...下localRotationEuler属性,再进行赋值操作,代码如下。 bobo.transform.translate(new Laya.Vector3(10, 0, 0), true); // 刷新下数值 var temp = bobo.transform.localRotationEuler; // 再进行修改 bobo.transform.localRotationEulerX = 0;方案二:在laya.d3.js中,在set localRota...
来源: Laya_社区 发布时间: 20210808
...ite3D.load("model/warehouse/1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(-25,0,0),false); warehouse1.name = "仓库1"; var warehouseCollider1 = warehouse1.addComponent(Laya.MeshCollider); war...
来源: Laya_社区 发布时间: 20171219
...exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{ private scene:Laya.Scene3D; private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private rotate:Laya.Vector3 = ne...
来源: Laya_社区 发布时间: 20190509
...000);//加载到场景scene.addChild(camera);//旋转摄像机角度camera.transform.rotate(new Laya.Vector3(-25,0,0),false,false);//移动摄像机位置camera.transform.position = new Laya.Vector3(0,5,10);//加入摄像机移动控制脚本camera.addComponent(CameraMoveScript); //添加蒙皮动...
来源: Laya_社区 发布时间: 20180531
...Resource (anonymous function) __proto._drawTextureM __proto.drawTextureWithTransform ._drawTextureWithTransform __proto._renderAll __proto._graphics __proto._transform __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto....
来源: Laya_社区 发布时间: 20170222
...; scene.addChild(camera); camera.transform.translate(new Vector3(0, 0.25, 0.6)); camera.transform.rotate(new Vector3(-30,0,0),true,false); var map:Sprite3D = Sprite3D.load("3d/zhuoZi/ZhuoZi.lh"); ...
来源: Laya_社区 发布时间: 20170314
...; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; //...
来源: Laya_社区 发布时间: 20180126
...0 - cameraY) + ( 0 - cameraZ)*( 0 - cameraZ)); camera.viewport.project(spr.transform.position, camera.projectionViewMatrix, _outPos); msg1.scale(300/xp, 300/xp); msg1.pivot(msg1.width,msg1.height); msg1.pos(_outPos.x / Laya.stage.clientScaleX,(_outPos.y / Laya.stage.clientScaleY)-20); }我这样写 ...
来源: Laya_社区 发布时间: 20180105
...ht = scene.addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 2048; light.shadowPSSMCount = 1; light.shadowPCFType = 3; let plane: Laya.MeshSprite3D ...
来源: Laya_社区 发布时间: 20191030