2020-07-28 20:21:55 -07:00
|
|
|
|
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [RayCastInput](raycastinput.md)
|
|
|
|
|
|
|
|
|
|
|
|
# Interface: RayCastInput
|
|
|
|
|
|
|
2021-04-16 17:10:15 +02:00
|
|
|
|
Ray-cast input data. The ray extends from `p1` to `p1 + maxFraction * (p2 - p1)`.
|
|
|
|
|
|
|
2020-07-28 20:21:55 -07:00
|
|
|
|
## Hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
* **RayCastInput**
|
|
|
|
|
|
|
|
|
|
|
|
## Index
|
|
|
|
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
|
|
|
|
* [maxFraction](raycastinput.md#maxfraction)
|
|
|
|
|
|
* [p1](raycastinput.md#p1)
|
|
|
|
|
|
* [p2](raycastinput.md#p2)
|
|
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
|
|
### maxFraction
|
|
|
|
|
|
|
|
|
|
|
|
• **maxFraction**: *number*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/AABB.ts:40](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/AABB.ts#L40)*
|
2020-07-28 20:21:55 -07:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### p1
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **p1**: *[Vec2](../classes/vec2.md)*
|
2020-07-28 20:21:55 -07:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/AABB.ts:38](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/AABB.ts#L38)*
|
2020-07-28 20:21:55 -07:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### p2
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **p2**: *[Vec2](../classes/vec2.md)*
|
2020-07-28 20:21:55 -07:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/AABB.ts:39](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/AABB.ts#L39)*
|