LittleJS 1.30.1

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:1361

Create a raycast result

fixture b2Fixture
point Vector2
normal Vector2
fraction number

Members

Members

The fixture that was hit

fraction : numberbox2d.js:1381

Distance fraction at the point of intersection

The hit normal

The box2d object

The hit point