LittleJS 1.31.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:1440

Create a raycast result

fixture b2Fixture
point Vector2
normal Vector2
fraction number

Members

Members

The fixture that was hit

fraction : numberbox2d.js:1460

Distance fraction at the point of intersection

The hit normal

The box2d object

The hit point