Exemplo n.º 1
0
        // 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);
        }
Exemplo n.º 2
0
        protected internal void InitializeCollisionShape(IntPtr native, BulletObject owner = null)
        {
            if (owner != null)
            {
                InitializeSubObject(native, owner);
            }
            else
            {
                InitializeUserOwned(native);

                AllocateUnmanagedHandle();
            }
        }
Exemplo n.º 3
0
 internal IndexedMesh(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 4
0
 internal EmptyAlgorithm(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 5
0
 internal RotationalLimitMotor(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 6
0
 internal Triangle(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
 internal GImpactCollisionAlgorithm(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 8
0
 internal MultiBody(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 9
0
 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);
 }
Exemplo n.º 12
0
 internal ManifoldResult(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
 internal ConvexPolyhedron(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 14
0
 internal OptimizedBvh(IntPtr native, BulletObject owner)
     : base(ConstructionInfo.Null)
 {
     InitializeSubObject(native, owner);
 }
 internal GImpactQuantizedBvhNode(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 16
0
 internal Aabb(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 17
0
 internal PoolAllocator(IntPtr native, BulletObject owner)
 {
     InitializeSubObject(native, owner);
 }
Exemplo n.º 18
0
 internal CreateFunc(IntPtr native, BulletObject owner)
     : base(ConstructionInfo.Null)
 {
 }
Exemplo n.º 19
0
 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);
 }