Constructor
new Box2dRaycastResult(fixture, point, normal, fraction)
Create a raycast result
Parameters:
| Name | Type | Description |
|---|---|---|
fixture | Object | |
point | Vector2 | |
normal | Vector2 | |
fraction | number |
- Source
Members
fixture
Properties| Type | Description |
|---|---|
| Object | The fixture that was hit |
- Source
fraction
Properties| Type | Description |
|---|---|
| number | Distance fraction at the point of intersection |
- Source
normal
Properties| Type | Description |
|---|---|
| Vector2 | The hit normal |
- Source
object
Properties| Type | Description |
|---|---|
| Box2dObject | The box2d object |
- Source
point
Properties| Type | Description |
|---|---|
| Vector2 | The hit point |
- Source