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

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

1. laya.d3.math.BoundSphere_API3.0 [ 100%]

...ors center radius Methods clone cloneTo intersectsRayDistance intersectsRayPoint toDefault createFromSubPoints createfromPoints Constructors constructor new BoundSphere(center?: Vector3, radius?: number): BoundSphere Defined in laya/d3/math/BoundSphere.ts:30 创建一个 BoundSphere 实例。 Parame...

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

2. 物理射线检测(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 91%]

...剪面的射线,进行射线检测。效果如(图5) ```typescript point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _camera.viewportPointToRay(point,_ray); //拿到射线碰撞的物体 _scene.physicsSimulation.rayCast(_ray,outs); //如果碰撞到...

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

3. 物理射线检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 88%]

...面的射线,进行射线检测。效果如(图5) ```typescript this.point.x = MouseManager.instance.mouseX; this.point.y = MouseManager.instance.mouseY; //产生射线 this._camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this._scene.physicsSimulation.rayCast(th...

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

4. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 85%]

...面的射线,进行射线检测。效果如(图5) ```typescript this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.ra...

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

5. laya.physics.EdgeCollider_API3.0 [ 84%]

... Accessors awaked density destroyed enabled friction hideFlags id isSensor points restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new EdgeCollider():...

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

6. laya.physics.PolygonCollider_API3.0 [ 84%]

... Accessors awaked density destroyed enabled friction hideFlags id isSensor points restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new PolygonCollider...

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

7. laya.physics.ChainCollider_API3.0 [ 83%]

...ssors awaked density destroyed enabled friction hideFlags id isSensor loop points restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new ChainCollider()...

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

8. laya.events.TouchInfo_API3.0 [ 83%]

...oved: boolean Defined in laya/events/InputManager.ts:594 Readonly pos pos: Point Implementation of ITouchInfo.pos Defined in laya/events/InputManager.ts:587 target target: Node Defined in laya/events/InputManager.ts:591 touchId touchId: number Implementation of ITouchInfo.touchId Defined in laya/eve...

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

9. laya.events.InputManager_API3.0 [ 82%]

...hEnabled Accessors inst touchCount touchTarget touches Methods getNodeUnderPoint getSprite3DUnderPoint getSpriteUnderPoint handleKeys handleMouse handleTouch hitTest cancelClick getTouchPos hasKeyDown Constructors constructor new InputManager(): InputManager Defined in laya/events/InputManager.ts:48...

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

10. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 79%]

...条射线 从摄像机创建一条射线,使用的是camera的 viewportPointToRay 方法。生成的这条射线是从摄像机的近裁剪面的一点出发,向远裁剪面的一点。这个射线的反向延长线经过摄像机的原点。 /** * 计算从屏幕空间生成的射线。 * @para...

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