大约有 53 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...刚体。 这有点像子父级关系,但是是通过物理而非变换(Transform)层次结构实现的。 固定约束非常适合你想能够轻松地分离的对象,或在变换(Transform)层次结构中没有子父级关系的情况下连接两个对象的运动。 **在LayaAir中使用Fixed...
来源: Laya2.0_文档 发布时间: 20210715
...RO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.sprite.transform.position,norDir,position) // this.sprite.transform.position = position; this.sprite.transform.localPositionX +=...
来源: Laya_社区 发布时间: 20191026
...刚体。 这有点像子父级关系,但是是通过物理而非变换(Transform)层次结构实现的。 固定约束非常适合你想能够轻松地分离的对象,或在变换(Transform)层次结构中没有子父级关系的情况下连接两个对象的运动。 **在LayaAir中使用Fixed...
来源: Laya2.0_文档 发布时间: 20210714
...ate(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new Laya.Vector3(0, 0.9, 0)); obj.addComponent(BoxControlScript); //旋转方向与角度设置 //var vect = new Laya.Vector3(0,1,0); //每10毫秒旋转一次...
来源: Laya_社区 发布时间: 20200611
[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
...0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p...
来源: Laya3.0_文档 发布时间: 20251010
...=null; this._simulation=null; (this.owner).transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._onTransformChanged); } 2019-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20190318
...返回的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
...节点添加onTriggerEnter的脚本监听, 当我不更改 红色小人的 transform.rotationEuler 值时,图中黑色小牛要靠近红色小人才会触发onTriggerEnter的回调,一切运行正常. 但是当我在update里 更改红色小人的 transform.rotationEuler 值后,黑色小牛并不...
来源: Laya_社区 发布时间: 20200720
...._ray)之后加一行: this._ray.origin = GameManager.instance.mainCamera.transform.position即可完美执行射线碰撞检测. 附件 : --> 2019-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_...
来源: Laya_社区 发布时间: 20190319