Box2dRaycastResult

Box2D Raycast Result

  • Holds results from a box2d raycast queries
  • Automatically created by box2d raycast functions

Constructor

new Box2dRaycastResult(fixture, point, normal, fraction)

Create a raycast result

Parameters:
NameTypeDescription
fixtureObject
pointVector2
normalVector2
fractionnumber

Members

fixture

Properties
TypeDescription
Object

The fixture that was hit

fraction

Properties
TypeDescription
number

Distance fraction at the point of intersection

normal

Properties
TypeDescription
Vector2

The hit normal

object

Properties
TypeDescription
Box2dObject

The box2d object

point

Properties
TypeDescription
Vector2

The hit point