大约有 174 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0044 秒)
...中 方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了? 比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByNam...
来源: Laya_社区 发布时间: 20171228
...Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Transform3D" Transform3D Class Transform3D Transform3D 类用于实现3D变换。 Hierarchy EventDispatcher Transform3D NativeTransform3D Index Properties tmpVec3 Accessors localMatrix localPosition localPositionX localPositi...
来源: Laya3.0_api 发布时间: 20231115
...: GetComponent<Rigidbody>().AddForce ( Quaternion.Euler (new Vector3(transform.rotation.eulerAngles.x,transform.rotation.eulerAngles.y,transform.rotation.eulerAngles.z)) *new Vector3(25f*length,0,0), ForceMode.VelocityChange); 大概的须求是2d场景,旋转鼠标,炮台也跟着旋转...
来源: Laya_社区 发布时间: 20200324
rotate设置的值和获取的值不一样 this.transform.rotate(new Vector3(0, 1.68, 0)); trace(">>>>>rotate>>>>" + transform.localRotation.y); trace(">>>>>rotate>>>>" + transform.rotation.y); 设置的旋转和输出的旋转值不一样,这...
来源: Laya_社区 发布时间: 20170605
...d Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeTransform3D" NativeTransform3D Class NativeTransform3D Transform3D 类用于实现3D变换。 Hierarchy Transform3D NativeTransform3D Index Constructors constructor Properties _nativeObj MemoryBlock_size tmpVec3 Accessors loc...
来源: Laya3.0_api 发布时间: 20231115
...jd); tf.translate(thisp.x,thisp.y); var otf:Matrix=new Matrix();//photoimg.transform?photoimg.transform:new Matrix(); //trace("jjjj1",photoimg.x,photoimg.y,photoimg.width,photoimg.height,photoimg.rotation); photoimg.transform=otf.concat(tf); image图片 通过矩阵旋转, bug1 如果设置缩放 ...
来源: Laya_社区 发布时间: 20161124
...题 模型x转了-90度 console.log(angle, " lastangel ", this.owner.transform.rotationEuler.y) this.lastAngle = this.owner.transform.rotationEuler.y; this.owner.transform.rotate(new Vector3(0, angle - this.lastAngle, 0), false, false) 打印出来看到y方向角度一直在变。 如果...
来源: Laya_社区 发布时间: 20190716
...置这个节点的旋转,如果我使用Laya.Quaternion.cloneTo(camera.transform.localRotation),会失败,如果使用camera.transform.localPosition = Laya.Quaternion.clone(),才会成功,之前我记得你们不是说过尽量避免创建对象吗?直接用cloneTo,摄像机的旋转四...
来源: Laya_社区 发布时间: 20170628
...时,x轴转到北极的角度值是60,南极的角度是-60;我是用transform.localRotationEuler获取的角度,然后我再用transform.localRotationEuler=new Vector3(60,0,0),这个时候是北极正朝向观众,前提必须y和z的值是0,如果y值变化,比如transform.localRota...
来源: Laya_社区 发布时间: 20180529
...节点的关联关系,使变换操作更灵活,每个精灵都有一个Transform3D。 (图2-9) 我们也可以在编辑器里手动调整精灵的变换 (图2-10) (图2-11) 图2-10用来调整精灵的旋转,图2-11用来调整精灵的缩放 (图2-12) 图2-12可同时用来调...
来源: Laya3.0_文档 发布时间: 20251010