pub fn new<A: AllocatorCallback>() -> Option<Owner<Self>> {
        let allocator = unsafe { A::new() };
        unsafe {
            Foundation::from_raw(phys_PxCreateFoundation(
                version(4, 1, 1),
                allocator,
                get_default_error_callback() as *mut PxErrorCallback,
            ))
        }
    }
/// Tries to create a Foundation of the given version with the default allocator and error callbacks.
/// Returns `None` if `phys_PxCreateFoundation` returns a null pointer.
Tries to create a Foundation of the given version with the default allocator and error callbacks.
Returns `None` if `phys_PxCreateFoundation` returns a null pointer.
Tries to create a Foundation of the given version with the default allocator and error callbacks . Returns ` None ` if ` phys_PxCreateFoundation ` returns a null pointer .
pub fn new<A: AllocatorCallback>() -> Option<Owner<Self>> {
        let allocator = unsafe { A::new() };
        unsafe {
            Foundation::from_raw(phys_PxCreateFoundation(
                version(4, 1, 1),
                allocator,
                get_default_error_callback() as *mut PxErrorCallback,
            ))
        }
    }
pub fn new < A : AllocatorCallback > ( ) -> Option < Owner < Self > > { let allocator = unsafe { A :: new ( ) } ; unsafe { Foundation :: from_raw ( phys_PxCreateFoundation ( version ( 4 , 1 , 1 ) , allocator , get_default_error_callback ( ) as * mut PxErrorCallback , ) ) } }
Tries to create a Foundation of the given version with the default allocator and error callbacks.
Tries to create a Foundation of the given version with the default allocator and error callbacks .