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

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

301. 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

302. 按照范例写的碰撞一直检测不到 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

303. laya.d3.physics.PhysicsCollider [ 50%]

... isTrigger : Boolean 获取是否为触发器。 PhysicsTriggerComponent owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...

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

304. layacmd 安装不成功 [ 50%]

... ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR npm ERR! code 1 2017-11-24 添加评论 免费帖 --> 分享 微博 QZON...

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

305. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 50%]

...enemyHit);                     var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D;                     if(_enemy.layer==6)                     {                         if(this.enemy!=null)return                         console.log("检测...

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

306. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞...

来源: Laya3.0_文档 发布时间: 20250103

307. 如何通过代码控制prefab上面的时间轴动画animation? [ 50%]

...作。 ... ani_show:Laya.FrameAnimation; onAwake(){ this.ani_show = this.owner["play"] as Laya.FrameAnimation; // 在onAwake中添加播放完成事件,基于某些原因,可能在onDisable的时候被移除,如果发现异常,可以选择在onEnable里面添加事件 this.ani_show.on(Laya.E...

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

308. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 50%]

...aya.Handler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now() - nt) / 1000 + "秒");             })         );  测试环境H5:0.094秒   测试环境native:0.697秒 附件 : --> ...

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

309. bug,ChainCollider.points第二次设置,会报错! [ 50%]

...s._started) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground");            //****新增代码*****, ground.addComponent(Laya.ChainCollider);                       //****新增代码*****, this._chains=ground.getComponent(Laya.ChainCo...

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

310. box2d 弹性异常 [ 50%]

...ther: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改成一个球,你就会发现,这个球,他的水平速度x 小于一定值后就变...

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