Esempio n. 1
0
        public btBroadphaseInterface getBroadphase()
        {
            global::System.IntPtr cPtr = BulletPINVOKE.btCollisionWorld_getBroadphase__SWIG_0(swigCPtr);
            btBroadphaseInterface ret  = (cPtr == global::System.IntPtr.Zero) ? null : new btBroadphaseInterface(cPtr, false);

            return(ret);
        }
Esempio n. 2
0
		new internal void Initialize( btDispatcher dispatcher, btBroadphaseInterface broadphase
								, btCollisionConfiguration collisionConfiguration )

		{
			base.Initialize( dispatcher, broadphase, collisionConfiguration );
			m_internalTickCallback = null;
			m_internalPreTickCallback = null;
			m_worldUserInfo = ( 0 );
		}
Esempio n. 3
0
		internal void Initialize( btDispatcher dispatcher
						, btBroadphaseInterface pairCache
						, btCollisionConfiguration collisionConfiguration )
		{
			m_dispatcher1 = dispatcher;
			m_broadphasePairCache = pairCache;
			m_debugDrawer = null;
			m_forceUpdateAllAabbs = true;
		}
Esempio n. 4
0
		///this btSimpleDynamicsWorld constructor creates dispatcher, broadphase pairCache and constraintSolver
		public btSimpleDynamicsWorld(btDispatcher dispatcher
				, btBroadphaseInterface pairCache
				,btConstraintSolver constraintSolver
				, btCollisionConfiguration collisionConfiguration)
			: base( dispatcher, pairCache, collisionConfiguration )
		{
			m_constraintSolver = ( constraintSolver );
			m_ownsConstraintSolver = ( false );
			m_gravity = new btVector3( 0, 0, -9.8 );

		}
Esempio n. 5
0
 public btDiscreteDynamicsWorld(btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration) : this(BulletPINVOKE.new_btDiscreteDynamicsWorld(btDispatcher.getCPtr(dispatcher), btBroadphaseInterface.getCPtr(pairCache), btConstraintSolver.getCPtr(constraintSolver), btCollisionConfiguration.getCPtr(collisionConfiguration)), true)
 {
 }
Esempio n. 6
0
 public static void benchmark(btBroadphaseInterface arg0)
 {
     BulletPINVOKE.btDbvtBroadphase_benchmark(btBroadphaseInterface.getCPtr(arg0));
 }
Esempio n. 7
0
		internal void Initialize( btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration )
		{
			base.Initialize( dispatcher, pairCache, collisionConfiguration );
			m_solverIslandCallback = null;
			m_constraintSolver = ( constraintSolver );
			m_gravity = new btVector3( 0, -10, 0 );
			m_localTime = ( 0 );
			m_fixedTimeStep = ( 0 );
			m_synchronizeAllMotionStates = ( false );
			m_applySpeculativeContactRestitution = ( false );
			m_latencyMotionStateInterpolation = ( true );

			if( m_constraintSolver == null )
			{
				m_constraintSolver = new btSequentialImpulseConstraintSolver();
				m_ownsConstraintSolver = true;
			}
			else
			{
				m_ownsConstraintSolver = false;
			}

			m_islandManager = new btSimulationIslandManager();

			m_ownsIslandManager = true;

			m_solverIslandCallback = new InplaceSolverIslandCallback( m_constraintSolver, dispatcher );
		}
Esempio n. 8
0
		public btDiscreteDynamicsWorld( btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration )
					: base( dispatcher, pairCache, collisionConfiguration )
		{
			Initialize( dispatcher, pairCache, constraintSolver, collisionConfiguration );
		}
Esempio n. 9
0
		internal btDynamicsWorld( btDispatcher dispatcher, btBroadphaseInterface broadphase
						, btCollisionConfiguration collisionConfiguration )
		//: base( dispatcher, broadphase, collisionConfiguration )
		{
			Initialize( dispatcher, broadphase, collisionConfiguration );
		}
Esempio n. 10
0
	btMultiBodyDynamicsWorld(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btMultiBodyConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration);
Esempio n. 11
0
 public void addToChildBroadphase(btMultiSapBroadphase.btMultiSapProxy parentMultiSapProxy, btBroadphaseProxy childProxy, btBroadphaseInterface childBroadphase)
 {
     BulletPINVOKE.btMultiSapBroadphase_addToChildBroadphase(swigCPtr, btMultiSapBroadphase.btMultiSapProxy.getCPtr(parentMultiSapProxy), btBroadphaseProxy.getCPtr(childProxy), btBroadphaseInterface.getCPtr(childBroadphase));
 }
Esempio n. 12
0
		internal btCollisionWorld( btDispatcher dispatcher
						, btBroadphaseInterface pairCache
						, btCollisionConfiguration collisionConfiguration )
		{
			Initialize( dispatcher, pairCache, collisionConfiguration );
		}
Esempio n. 13
0
 public void setBroadphase(btBroadphaseInterface pairCache)
 {
     BulletPINVOKE.btCollisionWorld_setBroadphase(swigCPtr, btBroadphaseInterface.getCPtr(pairCache));
 }
Esempio n. 14
0
 public btCollisionWorld(btDispatcher dispatcher, btBroadphaseInterface broadphasePairCache, btCollisionConfiguration collisionConfiguration) : this(BulletPINVOKE.new_btCollisionWorld(btDispatcher.getCPtr(dispatcher), btBroadphaseInterface.getCPtr(broadphasePairCache), btCollisionConfiguration.getCPtr(collisionConfiguration)), true)
 {
 }
Esempio n. 15
0
		//this constructor doesn't own the dispatcher and paircache/broadphase
		//public btCollisionWorld(btDispatcher dispatcher,btBroadphaseInterface broadphasePairCache, btCollisionConfiguration collisionConfiguration);

		//virtual ~btCollisionWorld();

		internal void setBroadphase( btBroadphaseInterface pairCache )
		{
			m_broadphasePairCache = pairCache;
		}
Esempio n. 16
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(btBroadphaseInterface obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }