Class PxCapsuleGeometry


  • public class PxCapsuleGeometry
    extends PxGeometry
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxCapsuleGeometry

        protected PxCapsuleGeometry()
      • PxCapsuleGeometry

        protected PxCapsuleGeometry​(long address)
      • PxCapsuleGeometry

        public PxCapsuleGeometry​(float radius,
                                 float halfHeight)
        Parameters:
        radius - WebIDL type: float
        halfHeight - WebIDL type: float
    • Method Detail

      • createAt

        public static PxCapsuleGeometry createAt​(long address,
                                                 float radius,
                                                 float halfHeight)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        radius - WebIDL type: float
        halfHeight - WebIDL type: float
        Returns:
        Stack allocated object of PxCapsuleGeometry
      • createAt

        public static <T> PxCapsuleGeometry createAt​(T allocator,
                                                     NativeObject.Allocator<T> allocate,
                                                     float radius,
                                                     float halfHeight)
        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.
        radius - WebIDL type: float
        halfHeight - WebIDL type: float
        Returns:
        Stack allocated object of PxCapsuleGeometry