RaycastHit

The result of a raycast hitting a collider - see Game.raycast()/raycastAll(). Pure data, so it's an interface rather than a class (no instantiation cost).

Properties

  • entity (GameEntity)
  • collider (Collider)
  • point (BGE.Math.Vector)
  • distance (float)
  • normal (BGE.Math.Vector)