Package physx.physics

Class PxHitFlags

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxHitFlags

        protected PxHitFlags()
      • PxHitFlags

        protected PxHitFlags​(long address)
      • PxHitFlags

        public PxHitFlags​(short flags)
        Parameters:
        flags - unsigned short
    • Method Detail

      • wrapPointer

        public static PxHitFlags wrapPointer​(long address)
      • malloc

        public static PxHitFlags malloc​(long address,
                                        short flags)
        Parameters:
        address - where the object is allocated
        flags - unsigned short
        Returns:
        Stack allocated object of PxHitFlags
      • malloc

        public static <T> PxHitFlags malloc​(T allocator,
                                            NativeObject.Allocator<T> allocate,
                                            short flags)
        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.
        flags - unsigned short
        Returns:
        Stack allocated object of PxHitFlags
      • destroy

        public void destroy()
      • isSet

        public boolean isSet​(int flag)
        Parameters:
        flag - PxHitFlagEnum [enum]
        Returns:
        boolean
      • set

        public void set​(int flag)
        Parameters:
        flag - PxHitFlagEnum [enum]
      • clear

        public void clear​(int flag)
        Parameters:
        flag - PxHitFlagEnum [enum]