Class RayCastOutput

java.lang.Object
org.jbox2d.collision.RayCastOutput

public class RayCastOutput extends java.lang.Object
Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from b2RayCastInput.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
     
    final Vec2
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class java.lang.Object

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

    • normal

      public final Vec2 normal
    • fraction

      public float fraction
  • Constructor Details

    • RayCastOutput

      public RayCastOutput()
  • Method Details