Package physx.physics

Class PxBatchQueryDesc

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxBatchQueryDesc

        protected PxBatchQueryDesc()
      • PxBatchQueryDesc

        protected PxBatchQueryDesc​(long address)
      • PxBatchQueryDesc

        public PxBatchQueryDesc​(int maxRaycastsPerExecute,
                                int maxSweepsPerExecute,
                                int maxOverlapsPerExecute)
        Parameters:
        maxRaycastsPerExecute - WebIDL type: unsigned long
        maxSweepsPerExecute - WebIDL type: unsigned long
        maxOverlapsPerExecute - WebIDL type: unsigned long
    • Method Detail

      • createAt

        public static PxBatchQueryDesc createAt​(long address,
                                                int maxRaycastsPerExecute,
                                                int maxSweepsPerExecute,
                                                int maxOverlapsPerExecute)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        maxRaycastsPerExecute - WebIDL type: unsigned long
        maxSweepsPerExecute - WebIDL type: unsigned long
        maxOverlapsPerExecute - WebIDL type: unsigned long
        Returns:
        Stack allocated object of PxBatchQueryDesc
      • createAt

        public static <T> PxBatchQueryDesc createAt​(T allocator,
                                                    NativeObject.Allocator<T> allocate,
                                                    int maxRaycastsPerExecute,
                                                    int maxSweepsPerExecute,
                                                    int maxOverlapsPerExecute)
        Type Parameters:
        T - Allocator class, e.g. LWJGL's MemoryStack.
        Parameters:
        allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
        allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
        maxRaycastsPerExecute - WebIDL type: unsigned long
        maxSweepsPerExecute - WebIDL type: unsigned long
        maxOverlapsPerExecute - WebIDL type: unsigned long
        Returns:
        Stack allocated object of PxBatchQueryDesc
      • destroy

        public void destroy()
      • getFilterShaderData

        public NativeObject getFilterShaderData()
        Returns:
        WebIDL type: any
      • setFilterShaderData

        public void setFilterShaderData​(NativeObject value)
        Parameters:
        value - WebIDL type: any
      • getFilterShaderDataSize

        public int getFilterShaderDataSize()
        Returns:
        WebIDL type: unsigned long
      • setFilterShaderDataSize

        public void setFilterShaderDataSize​(int value)
        Parameters:
        value - WebIDL type: unsigned long
      • isValid

        public boolean isValid()
        Returns:
        WebIDL type: boolean