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

大约有 437 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)

241. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 50%]

...e3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发器,取消物理反馈 staticCollider.isTrigger = true; /* ……省略若干代码 */ ``` #### 2.2 理解各种碰撞器 ##### 2.2.1 静态碰撞器 `PhysicsCollider` Laya...

来源: Laya2.0_文档 发布时间: 20210715

242. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 49%]

...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents get...

来源: Laya3.0_api 发布时间: 20231115

243. laya阴影问题 [ 49%]

...etComponent(Laya.PhysicsCollider); if(!boxCollider){ boxCollider = cardOne.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; boxCollider.colliderShape = new Laya.BoxColliderShape(b, 0, c); } this.MainScene3D.addChild(cardOne); cardOne.transform.position = pos; cardOne.transform.rotate(new ...

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

244. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 49%]

...     let mesh = v as MeshSprite3D;                 mesh.addComponent(SkinAnimations);                 this.meshes.push(mesh);             }             this.switchAnimation('idle');         }         private switchAnimation(name:s...

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

245. [LayaAir 2.0]laya2.0 CharacterController move 运动不平滑,会抖动 [ 49%]

...   部分代码:   this.characterController = this._tempVirtualMoveGo.addComponent(Laya.CharacterController); let sphereShape = new Laya.CapsuleColliderShape(0.5, 1); sphereShape.localOffset = new Laya.Vector3(0, 0.3, 0); this.characterController.colliderShape = sphereShape; this.characterContro...

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

246. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 49%]

...一个小问题。监听不到动画结束。。。 var anifish2 = fish2.addComponent(Laya.SkinAnimations); anifish2.templet = Laya.AnimationTemplet.load("fish/haitun/haitun.lsani"); anifish2.player.playByFrame(0,1.0,2147483647,0,60,30);//游动 // anifish2.player.playByFrame(0,1.0,2147483647,60,145...

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

247. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 49%]

....rotate(new Laya.Vector3(0, 45, 0), false, false);  const rigidBody = box.addComponent(Laya.CannonRigidbody3D) as Laya.CannonRigidbody3D;  const shape = new Laya.CannonBoxColliderShape(1, 1, 1); shape.localOffset = new Laya.Vector3(0, 0.1, 0); //模型会沿着y轴正方向移动 rigidBody.isKinem...

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

248. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 48%]

...der我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个自定义材质,并且添加给box var _material = new CustomMaterial(); box.meshRenderer.material = _material; ``` 运行起来后,我们调整视角得到的效果图: ![]...

来源: Laya2.0_文档 发布时间: 20210715

249. 新手请问下如何开启Laya3D的physics [ 48%]

...ysicsCollider.__proto._onAdded (laya.d3.js:39300) at MeshSprite3D.__proto._addComponentInstance (laya.core.js:13707) at MeshSprite3D.__proto.addComponent (laya.core.js:13782) at Function.Utils3D._createNodeByJson (laya.d3.js:9676) unity是5.6.7f1,插件是IDE 2.0.1beta下载页面下的,应该...

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

250. 为什么说没有​ playByFrame方法 [ 48%]

为什么说没有​ playByFrame方法 var anifish = fish.addComponent(Laya.SkinAnimations); anifish.templet = Laya.AnimationTemplet.load("fish/denglongyu/denglongyu.lsani"); anifish.player.playByFrame(0,1.0,2147483647,0,30,30);//游动 // anifish.player.playByFrame(0,1.0,2147483647,40,72,30);//...

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