大约有 139 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0033 秒)
...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
...剪面的射线,进行射线检测。效果如(图5) ```typescript point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _camera.viewportPointToRay(point,_ray); //拿到射线碰撞的物体 _scene.physicsSimulation.rayCast(_ray,outs); //如果碰撞到...
来源: Laya2.0_文档 发布时间: 20210715
...面的射线,进行射线检测。效果如(图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
...面的射线,进行射线检测。效果如(图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
... 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
... 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
...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
...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
...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
...条射线 从摄像机创建一条射线,使用的是camera的 viewportPointToRay 方法。生成的这条射线是从摄像机的近裁剪面的一点出发,向远裁剪面的一点。这个射线的反向延长线经过摄像机的原点。 /** * 计算从屏幕空间生成的射线。 * @para...
来源: Laya3.0_文档 发布时间: 20241014