• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 394 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0034 秒)

291. SphereCollider和MeshCollider碰撞检测的bug [ 51%]

...math.ContainmentType.Contains*/1) // return true // } var worldMat = other.owner.transform.worldMatrix; var vec = new Vector3(); for (var i = 0, iLen = positions.length; i < iLen; i++) { Vector3.transformCoordinate(positions[i], worldMat, vec); if (Collision.sphereContainsPoint(this.boundSphere, ...

来源: Laya_社区 发布时间: 20181114

292. UNITY导出的模型旋转不了 [ 51%]

...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为...

来源: Laya_社区 发布时间: 20200611

293. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 51%]

...this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void {...

来源: Laya_社区 发布时间: 20230703

294. laya.d3.component.animation.UVAnimations [ 51%]

...ad-only] 获取播放器当前动画的节点数量。 KeyframeAnimations owner : Sprite3D[read-only] 获取所属Sprite3D节点。 Component3D player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : Anim...

来源: laya_api 发布时间: 20170603

295. 发射射线检测不到,物体有包围盒 [ 51%]

...了Scene3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.c...

来源: Laya_社区 发布时间: 20220506

296. 3D项目,如何判断一个3D模型是否在摄像机的范围内,有没有这方面的接口,,, [ 51%]

...其shinnedMeshRenderer直接点出属性isRender.完事 let mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); 这是我测试时的模型和代码,实际使用根据模型的导出的层级和类型而定。附:我使用的是2.6.1...

来源: Laya_社区 发布时间: 20181009

297. this.scene.physicsSimulation.rayCastAll 报错 [ 51%]

...到的物体 this.text.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") }   上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用)     报错如下...

来源: Laya_社区 发布时间: 20190523

298. 设置后box2d 的 worldRoot 后平移场景 物理世界原地不动 [ 51%]

...能吗,这样可以 onAwake() { const self = this; self.gameObj = self.owner as Laya.Sprite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = this.target.x - 400; this.came...

来源: Laya_社区 发布时间: 20190214

299. laya.physics.joint.MouseJoint [ 51%]

...mber鼠标关节在拖曳刚体bodyB时施加的最大作用力MouseJoint owner : Node [只读]获取所属Node节点。 Component  selfBody : RigidBody[首次设置有效]关节的自身刚体MouseJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties ...

来源: Laya2.0_api 发布时间: 20190513

300. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 50%]

...ya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画   2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

来源: Laya_社区 发布时间: 20180118