大约有 40 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
... 下放开注释就发生错误。 // this.owner.transform.localRotationEulerX=this.hitResult1.collider.owner.transform.localRotationEulerX; // this.rotation=this.owner.transform.localRotationEuler; // }else if(this.hitRes...
来源: Laya_社区 发布时间: 20200222
...久才发现是laya的addChild()方法的原因。你可以打印下child.transform.position,会发现child.transform.position = child.transform.localPosition + owner.transform.position,导致child发生了位移。 以下是是我验证出来的结果,基于两种不同的思路,这最终...
来源: Laya_社区 发布时间: 20200819
....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
...(state.elapsedTime); } protected function mouseDown(e:Event):void { camera.transform.localRotation.getYawPitchRoll(yawPitchRoll); lastMouseX = Laya.stage.mouseX; lastMouseY = Laya.stage.mouseY; isMouseDown = true; } protected function mouseUp(e:Event):void { isMouseDown = false; } protected function...
来源: Laya_社区 发布时间: 20170218
...题 模型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
...果owner是3D节点那就没有x属性,因为3D节点的变换是通过transform来实现的,如果owner是2D节点,那就有这个属性,因为2D节点的坐标等信息是节点上的属性 2025-11-20 1 0 分享 微博 QZONE 微信 LayaAir小牛 赞同来自: 有的 就是position的X和Y ...
来源: Laya_社区 发布时间: 20251118
...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...
来源: Laya_社区 发布时间: 20171113
...RotationZ); this.tempRotationZ.cloneTo(this.camera.transform.localRotation); this.camera.transform.localRotation = this.camera.transform.localRotation; } } /** * @inheritDoc */...
来源: Laya_社区 发布时间: 20200707
3D坐标系转换 Laya.Vector3.transformCoordinate(worldPos, this.owner.transform.localMatrix, this._tempPos); 我想将一个世界坐标转换到某个Sprite3D的本地坐标,上面这种写法,的出来的结果不对,所以问下应该怎么转换 2018-07-19 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180719
[LayaAir3]3d刚体物体使用transform移动无效 3.2.1里都还是可以的,更新到3.2.2之后就没法控制了。 let cube = this.owner.getChildByName("Cube")as Laya.Sprite3D; cube.transform.position = new Laya.Vector3(0, 5, 0);------------------------------------------ 有人回复了,...
来源: Laya_社区 发布时间: 20241209