大约有 37 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...oad("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getC...
来源: Laya_社区 发布时间: 20171212
...rite3D(Mesh.load("3d/man/hero-mon_1129.lm")); roleMan.transform.localScale = new Vector3(0.01, 0.01, 0.01); roleMan.transform.localPosition = new Vector3(0, -0.5, -3); scene.addChild(roleMan); 男角色的武器模型是:hero-mo...
来源: Laya_社区 发布时间: 20170401
...at newImpulsePercent, float impulseForce) { Vector3 a = base.transform.position - collision.gameObject.transform.position; float num = -(newImpulsePercent * impulseForce / 100f); num = Mathf.Clamp(num, -impulseForce, impulseForce); a.Normalize(); ...
来源: Laya_社区 发布时间: 20191028
...ew Laya.MeshSprite3D(Laya.Mesh.load("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scene.addChild(this.roleMan); //给男角色添加贴图动画 var manAni:Laya.SkinAnimations =...
来源: Laya_社区 发布时间: 20180725
...返回的d的数据 var startPoi=new Laya.Vector3(this.Bullet.transform.position.x,this.Bullet.transform.position.y,this.Bullet.transform.position.z-0.5);//起始点 var dir = new Laya.Vector3(0,0,-1);//方向 var ray:Laya.Ray = new Laya.Ray(startPoi,dir);//创建...
来源: Laya_社区 发布时间: 20231120
...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh...
来源: Laya_社区 发布时间: 20180614
....onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = other._transformOrientedBoundBox.extents...
来源: Laya_社区 发布时间: 20181017
...ya.maths.Matrix=bone.getResultMatrixByFrame(skeleton.index); result=matrix.transformPoint(result); return result; } } 以上是自定义代码部分,下面是laya源码的修改: 1. laya.ani.js 文件中 Bone 类中添加通过帧数来获取矩阵的方法 //返回变化矩阵 ...
来源: Laya_社区 发布时间: 20190805
...eshSprite3D(Laya.Mesh.load("3d/man/CunMinNan-cunminnan.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01, 0.01, 0.01); this.roleMan.transform.localPostion = new Laya.Vertor3(0,-0.5,-3); this.scene.addChild(this.roleMan); //添加蒙皮动画组件 var anniRoleMan = this.roleMan.addCom...
来源: Laya_社区 发布时间: 20180731
...ite3D.__proto._childs (laya.core.js:6194) at RenderSprite3D.__proto._transform (laya.webgl.js:6730) at Character.__proto.render (laya.core.js:15656) at RenderSprite3D.__proto._childs (laya.core.js:6194) at RenderSprite3D.__proto._graphics (laya.core.js:6125) at Owner.__...
来源: Laya_社区 发布时间: 20181120