2021-05-11 18:30:36 -07:00

42 lines
899 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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)*