// Initialize an object that is part of another object or deleted by another object. // These objects should not be deleted in the Dispose method of this wrapper class. protected internal void InitializeSubObject(IntPtr native, BulletObject owner) { Initialize(native); #if BULLET_OBJECT_TRACKING Owner = owner; #endif BulletObjectTracker.Add(this); GC.SuppressFinalize(this); }
protected internal void InitializeCollisionShape(IntPtr native, BulletObject owner = null) { if (owner != null) { InitializeSubObject(native, owner); } else { InitializeUserOwned(native); AllocateUnmanagedHandle(); } }
internal IndexedMesh(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal EmptyAlgorithm(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal RotationalLimitMotor(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal Triangle(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal GImpactCollisionAlgorithm(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal MultiBody(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal PersistentManifold(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal TrimeshPrimitiveManager(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal SphereTriangleCollisionAlgorithm(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal ManifoldResult(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal ConvexPolyhedron(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal OptimizedBvh(IntPtr native, BulletObject owner) : base(ConstructionInfo.Null) { InitializeSubObject(native, owner); }
internal GImpactQuantizedBvhNode(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal Aabb(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal PoolAllocator(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal CreateFunc(IntPtr native, BulletObject owner) : base(ConstructionInfo.Null) { }
internal SoftBodyConcaveCollisionAlgorithm(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }
internal CreateFunc(IntPtr native, BulletObject owner) : base(ConstructionInfo.Null) { InitializeSubObject(native, owner); }
internal SequentialImpulseConstraintSolver(IntPtr native, BulletObject owner) { InitializeSubObject(native, owner); }