大约有 155 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0033 秒)
...中的旋转是基于欧拉角四元数进行旋转的 scene.currentCamera.transform.rotation,去查下这个API! 或者去查看下照相机移动的脚本CameraMoveScript 2016-09-22 1 0 分享 微博 QZONE 微信 SONIC3D 赞同来自: // 按角度制,绕相机local坐标系的Y轴,每帧转1...
来源: Laya_社区 发布时间: 20160914
....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
... 不能检测碰撞,还是会穿过物体。物体移动是通过控制transform移动的 2018-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 閑好手游 赞同来自: 通过transform控制。。。。...
来源: Laya_社区 发布时间: 20181226
..., 0.6); var box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.mate...
来源: Laya_社区 发布时间: 20181126
...摄像机如何旋转后 回到旋转之前的视角 摄像机旋转camera.transform.rotate(new Laya.Vector3(0.15, -5.95, 0.015)); 之后通过camera.transform.rotate(new Laya.Vector3(-0.15, 5.95, -0.015)); 不能回到原来的视角 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181012
...; part.once(Event.HIERARCHY_LOADED, this, function():void{ part.transform.localScale = new Vector3(3, 3, 3); }); 我按照这个调整粒子大小,不起作用啊 2018-07-09 0 6 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: effect.once(Laya.Event.HIERARCHY_LOADED, this, funct...
来源: Laya_社区 发布时间: 20180705
...his.scene.ambientColor = new Laya.Vector3(1, 1, 1); camera.transform.translate(new Laya.Vector3(0,0.8,1.5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); // var camera:Laya.Camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)) as...
来源: Laya_社区 发布时间: 20190531
...3D(xxxx)); //加载材质 layaMonkey.meshRender.material = mat; layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //Laya.timer.frameLoop(1, this, function () { // layaMonkey.transform.rotate(this.rotat...
来源: Laya_社区 发布时间: 20180329
...难吗? 这是一个Typescript版本的3d缓动实现,支持Sprite3d的transform里的属性,具体请参照例子 支持Vector3和Vector4的缓动,具体实现请看例子 github链接: https://github.com/AILHC/LayaD3Tween 欢迎使用和提建议,给个star 么么哒~ 2019-02-28 添...
来源: Laya_社区 发布时间: 20190228
...rite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape_1 : Laya.BoxColliderShape = new Laya.BoxColliderShape(1, 1, 1); boxRigidBody_1.collide...
来源: Laya_社区 发布时间: 20190602