大约有 396 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0035 秒)
Laya_社区(159) Laya3.0_api(85) Laya3.0_文档(64) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
...mber鼠标关节在拖曳刚体bodyB时施加的最大作用力MouseJoint owner : Node [只读]获取所属Node节点。 Component selfBody : RigidBody[首次设置有效]关节的自身刚体MouseJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties ...
来源: Laya2.0_api 发布时间: 20190513
...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
... isTrigger : Boolean 获取是否为触发器。 PhysicsTriggerComponent owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
... 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
...enemyHit); var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D; if(_enemy.layer==6) { if(this.enemy!=null)return console.log("检测...
来源: Laya_社区 发布时间: 20231120
...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞...
来源: Laya3.0_文档 发布时间: 20250103
...作。 ... 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
...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
...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
...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