Package org.lwjgl.ovr

Class OVRBoundaryTestResult

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


    public class OVRBoundaryTestResult
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.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

        public static final int SIZEOF
        The struct size in bytes.
    • 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.