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

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

41. 3D 触发器如何获取碰撞位置 [ 83%]

...lisionEnter(obj: Laya.Collision) { let node: Laya.MeshSprite3D = obj.other.owner as Laya.MeshSprite3D; let owner: Laya.MeshSprite3D = this.owner as Laya.MeshSprite3D; let position = obj.contacts[0].positionOnA; // 碰撞位置 }     onTriggerEnter(obj) 、、如何获取碰撞位置? 2020-04-08 ...

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

42. laya.d3.core.pixelLine.PixelLineFilter [ 83%]

...用于线过滤器。 Public Methods  MethodDefined By  PixelLineFilter(owner:PixelLineSprite3D, maxLineCount:int)PixelLineFilter  _getLineData(index:int, out:PixelLineData):void 获取线段数据 PixelLineFilter  _getType():int[override] 获取几何体类型。 PixelLineFilter  _prepareR...

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

43. laya.d3.component.physics.MeshCollider [ 83%]

...件。 Collider  mesh : BaseMesh 获取碰撞器网格。 MeshCollider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D started : Boolean是否已执行start函数。Component3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By...

来源: laya_api 发布时间: 20170929

44. laya.d3.renderobjs.nativeobj.NativeInstanceRenderElementOBJ_API3.0 [ 82%]

...ments IRenderElement Index Constructors constructor Properties _nativeObj _owner _shaderInstances Accessors _geometry _invertFront _isRender _materialShaderData _renderShaderData _transform drawCount Methods _addShaderInstance _clearShaderInstance _destroy _render addUpdateBuffer clear getUpdateData...

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

45. laya.d3.renderobjs.nativeobj.NativeBaseRenderNode_API3.0 [ 82%]

...essors bounds boundsChange castShadow distanceForSort geometryBounds layer owner receiveShadow renderId renderbitFlag staticMask transform Constructors constructor new NativeBaseRenderNode(): NativeBaseRenderNode Defined in laya/d3/RenderObjs/NativeOBJ/NativeBaseRenderNode.ts:12 Returns NativeBaseRe...

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

46. 鼠标脚本(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 82%]

...---Script3D中的鼠标事件。如果想要使用鼠标脚本,在脚本owner上还是需要有物理碰撞器。 **Tips**:鼠标脚本依赖射线检测,只不过不用开放者自己手动创建射线了。 **鼠标脚本内容:** > Method `onMouseClick():void` 鼠标点击时执行 `onMou...

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

47. laya2 物理引擎好多问题 [ 82%]

... onTriggerEnter(e:Laya.RigidBody):void{  var cil:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider); var rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya.An...

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

48. animation动画结束后怎么监听? [ 82%]

...放完了没有侦听到COMPLETE事件。 肖刚 • 2020-06-18 00:54 this.owner.ani.on(Laya.Event.COMPLETE,this.onSplashComplete); this.owner.ani.play(0,false); this.owner.stage.on(Laya.Event.COMPLETE,this.onSplashComplete); 这两个侦听器都没有侦听到COMPLETE事件的发生。 FullyI • ...

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

49. laya.d3.component.physics.BoxCollider [ 82%]

... Boolean[override] [read-only] 获取是否为单实例组件。 Collider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D  size : Vector3 获取盒子碰撞器长宽高的一半。 BoxCollider started : Boolean是否已执行start函数。Component3DPublic Methods Hide...

来源: laya_api 发布时间: 20170929

50. laya.d3.component.physics.SphereCollider [ 82%]

... Boolean[override] [read-only] 获取是否为单实例组件。 Collider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D  radius : Number 获取半径。 SphereCollider started : Boolean是否已执行start函数。Component3DPublic Methods Hide Inherited Public Metho...

来源: laya_api 发布时间: 20170929