Package physx.physics

Class PxActorFlags

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxActorFlags

        protected PxActorFlags()
      • PxActorFlags

        protected PxActorFlags​(long address)
      • PxActorFlags

        public PxActorFlags​(byte flags)
        Parameters:
        flags - octet
    • Method Detail

      • wrapPointer

        public static PxActorFlags wrapPointer​(long address)
      • malloc

        public static PxActorFlags malloc​(long address,
                                          byte flags)
        Parameters:
        address - where the object is allocated
        flags - octet
        Returns:
        Stack allocated object of PxActorFlags
      • malloc

        public static <T> PxActorFlags malloc​(T allocator,
                                              NativeObject.Allocator<T> allocate,
                                              byte 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 - octet
        Returns:
        Stack allocated object of PxActorFlags
      • destroy

        public void destroy()
      • isSet

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

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

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