public static btCollisionObject GetObjectFromSwigPtr(SWIGTYPE_p_btCollisionObject ptr)
{
HandleRef handle = SWIGTYPE_p_btCollisionObject.getCPtr(ptr);
if (handle.Wrapper == null || handle.Handle == IntPtr.Zero)
{
return null;
}
return new btCollisionObject(handle.Handle, false);
}