Class RaycastHit

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

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • fixture

      public com.badlogic.gdx.physics.box2d.Fixture fixture
      Fixture which was hit.
    • point

      public com.badlogic.gdx.math.Vector2 point
      Point at which the raycast hit the fixture.
    • normal

      public com.badlogic.gdx.math.Vector2 normal
      the normal vector of the collider surface at the hit point.
  • Constructor Details

    • RaycastHit

      public RaycastHit()