Package physx.physics

Class PxRigidBodyFlags

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxRigidBodyFlags

        protected PxRigidBodyFlags()
      • PxRigidBodyFlags

        protected PxRigidBodyFlags​(long address)
      • PxRigidBodyFlags

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

      • malloc

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

        public static <T> PxRigidBodyFlags 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 PxRigidBodyFlags
      • destroy

        public void destroy()
      • isSet

        public boolean isSet​(int flag)
        Parameters:
        flag - PxRigidBodyFlagEnum [enum]
        Returns:
        boolean