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

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

161. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 69%]

... Laya.Physics.I.allowSleeping = false;         this.strWorldRoot= this.owner.scene.strWorldRoot;         Laya.Physics.I.worldRoot = this.strWorldRoot;     }     onUpdate(): void {         var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y);         v...

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

162. Camera.viewportToRay中origin与direction相等问题 [ 68%]

...ce.mainCamera.viewportPointToRay(this._rayPt, this._ray); let scene = this.owner.scene as Laya.Scene3D; scene.physicsSimulation.rayCast(this._ray, this._raycastHit); console.log(this._raycastHit.succeeded); if(this._raycastHit.succeeded) console.log(this._raycastHit.collider.owner.name); } GameManag...

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

163. laya.d3.component.animator.Animator_API3.0 [ 68%]

...structors constructor Properties _controller _extra _singleton cullingMode owner runInEditor scriptPath CULLINGMODE_ALWAYSANIMATE CULLINGMODE_CULLCOMPLETELY Accessors animatorParams awaked controller controllerLayerCount destroyed enabled hideFlags id lowUpdateDelty sleep speed updateMode Methods _i...

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

164. laya.d3.core.render.BaseRender_API3.0 [ 67%]

...Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset material materials ratioIgnor receiveShadow reflection...

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

165. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 67%]

... //加载Base64图片数据 sp1.loadImage(e.target.result as string); this.owner.addChild(sp1); } }); 上述代码中,用 Laya.loader.fetch 加载图片二进制数据,根据自定义的规则,可以解析数据加密方式,并获得完整图片数据。在这里我们更多的介绍一下 L...

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

166. 请问Laya如何使用第三方物理库 [ 67%]

...ld, OnDisable则移除, onUpdate里面根据CANNONBody的信息更新(this.owner as Laya.MeshSprite).transfrom.(最好用插值,平滑点,四元数代码就拷贝Laya源码改改.) isKinematic 则根据(this.owner as Laya.MeshSprite).transfrom的位置信息更新CANNONBody 2020-02-26 0 2 分享 微...

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

167. laya.d3.core.render.BaseRender [ 66%]

...blic Methods Show Inherited Public Methods MethodDefined By  BaseRender(owner:RenderableSprite3D) 创建一个新的 BaseRender 实例。 BaseRender  _addShaderDefine(value:int):void 增加Shader宏定义。 BaseRender  _removeShaderDefine(value:int):void 移除Shader宏定义。 BaseRender ...

来源: laya_api 发布时间: 20170929

168. 动画节点 · LayaAir3.0文档 · LAYABOX [ 66%]

...= Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法...

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

169. laya.d3.core.MeshRenderer_API3.0 [ 66%]

...Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset material materials ratioIgnor receiveShadow reflection...

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

170. laya.physics.RigidBody_API3.0 [ 65%]

...ructors constructor Properties _extra _singleton category group label mask owner runInEditor scriptPath Accessors allowRotation allowSleep angularDamping angularVelocity awaked body bullet destroyed enabled gravityScale hideFlags id linearDamping linearVelocity type Methods _getOriBody _initialize _...

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