Package org.lwjgl.ovr

Class OVRBoundaryTestResult

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class OVRBoundaryTestResult
    extends Struct
    implements NativeResource
    Provides boundary test information.

    Member documentation

    • IsTriggering – True if the boundary system is being triggered. Note that due to fade in/out effects this may not exactly match visibility.
    • ClosestDistance – Distance to the closest play area or outer boundary surface
    • ClosestPoint – Closest point on the boundary surface
    • ClosestPointNormal – Unit surface normal of the closest boundary surface

    Layout

    
     struct ovrBoundaryTestResult {
         ovrBool IsTriggering;
         float ClosestDistance;
         ovrVector3f ClosestPoint;
         ovrVector3f ClosestPointNormal;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ISTRIGGERING, CLOSESTDISTANCE, CLOSESTPOINT, CLOSESTPOINTNORMAL

        The struct member offsets.
    • Constructor Detail

      • OVRBoundaryTestResult

        public OVRBoundaryTestResult​(java.nio.ByteBuffer container)
        Creates a OVRBoundaryTestResult instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.