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 - WebIDL type: octet
    • Method Detail

      • createAt

        public static PxRigidBodyFlags createAt​(long address,
                                                byte flags)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        flags - WebIDL type: octet
        Returns:
        Stack allocated object of PxRigidBodyFlags
      • createAt

        public static <T> PxRigidBodyFlags createAt​(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 - WebIDL type: octet
        Returns:
        Stack allocated object of PxRigidBodyFlags
      • destroy

        public void destroy()
      • isSet

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

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

        public void clear​(int flag)
        Parameters:
        flag - WebIDL type: PxRigidBodyFlagEnum [enum]