Class RaycastHit

java.lang.Object
com.deco2800.game.physics.raycast.RaycastHit

public class RaycastHit
extends java.lang.Object
Stores information about a raycast hit.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Fixture fixture
    Fixture which was hit.
    Vector2 normal
    the normal vector of the collider surface at the hit point.
    Vector2 point
    Point at which the raycast hit the fixture.
  • Constructor Summary

    Constructors 
    Constructor Description
    RaycastHit()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fixture

      public Fixture fixture
      Fixture which was hit.
    • point

      public Vector2 point
      Point at which the raycast hit the fixture.
    • normal

      public Vector2 normal
      the normal vector of the collider surface at the hit point.
  • Constructor Details