LittleJS 1.28.0

Box2D

Box2dRaycastResult

Box2D Raycast Result

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

Constructor

new Box2dRaycastResult(fixture, point, normal, fraction)box2d.js:1324

Create a raycast result

fixture Object
point Vector2
normal Vector2
fraction number

Members

Members

fixture : Objectbox2d.js:1337

The fixture that was hit

fraction : numberbox2d.js:1343

Distance fraction at the point of intersection

The hit normal

The box2d object

The hit point