42 lines
899 B
Markdown
42 lines
899 B
Markdown
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [RayCastInput](raycastinput.md)
|
||
|
||
# Interface: RayCastInput
|
||
|
||
Ray-cast input data. The ray extends from `p1` to `p1 + maxFraction * (p2 - p1)`.
|
||
|
||
## Hierarchy
|
||
|
||
* **RayCastInput**
|
||
|
||
## Index
|
||
|
||
### Properties
|
||
|
||
* [maxFraction](raycastinput.md#maxfraction)
|
||
* [p1](raycastinput.md#p1)
|
||
* [p2](raycastinput.md#p2)
|
||
|
||
## Properties
|
||
|
||
### maxFraction
|
||
|
||
• **maxFraction**: *number*
|
||
|
||
*Defined in [src/collision/AABB.ts:40](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/AABB.ts#L40)*
|
||
|
||
___
|
||
|
||
### p1
|
||
|
||
• **p1**: *[Vec2](../classes/vec2.md)*
|
||
|
||
*Defined in [src/collision/AABB.ts:38](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/AABB.ts#L38)*
|
||
|
||
___
|
||
|
||
### p2
|
||
|
||
• **p2**: *[Vec2](../classes/vec2.md)*
|
||
|
||
*Defined in [src/collision/AABB.ts:39](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/AABB.ts#L39)*
|