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); }
new internal void Initialize( btDispatcher dispatcher, btBroadphaseInterface broadphase , btCollisionConfiguration collisionConfiguration ) { base.Initialize( dispatcher, broadphase, collisionConfiguration ); m_internalTickCallback = null; m_internalPreTickCallback = null; m_worldUserInfo = ( 0 ); }
internal void Initialize( btDispatcher dispatcher , btBroadphaseInterface pairCache , btCollisionConfiguration collisionConfiguration ) { m_dispatcher1 = dispatcher; m_broadphasePairCache = pairCache; m_debugDrawer = null; m_forceUpdateAllAabbs = true; }
///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 ); }
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) { }
public static void benchmark(btBroadphaseInterface arg0) { BulletPINVOKE.btDbvtBroadphase_benchmark(btBroadphaseInterface.getCPtr(arg0)); }
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 ); }
public btDiscreteDynamicsWorld( btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration ) : base( dispatcher, pairCache, collisionConfiguration ) { Initialize( dispatcher, pairCache, constraintSolver, collisionConfiguration ); }
internal btDynamicsWorld( btDispatcher dispatcher, btBroadphaseInterface broadphase , btCollisionConfiguration collisionConfiguration ) //: base( dispatcher, broadphase, collisionConfiguration ) { Initialize( dispatcher, broadphase, collisionConfiguration ); }
btMultiBodyDynamicsWorld(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btMultiBodyConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration);
public void addToChildBroadphase(btMultiSapBroadphase.btMultiSapProxy parentMultiSapProxy, btBroadphaseProxy childProxy, btBroadphaseInterface childBroadphase) { BulletPINVOKE.btMultiSapBroadphase_addToChildBroadphase(swigCPtr, btMultiSapBroadphase.btMultiSapProxy.getCPtr(parentMultiSapProxy), btBroadphaseProxy.getCPtr(childProxy), btBroadphaseInterface.getCPtr(childBroadphase)); }
internal btCollisionWorld( btDispatcher dispatcher , btBroadphaseInterface pairCache , btCollisionConfiguration collisionConfiguration ) { Initialize( dispatcher, pairCache, collisionConfiguration ); }
public void setBroadphase(btBroadphaseInterface pairCache) { BulletPINVOKE.btCollisionWorld_setBroadphase(swigCPtr, btBroadphaseInterface.getCPtr(pairCache)); }
public btCollisionWorld(btDispatcher dispatcher, btBroadphaseInterface broadphasePairCache, btCollisionConfiguration collisionConfiguration) : this(BulletPINVOKE.new_btCollisionWorld(btDispatcher.getCPtr(dispatcher), btBroadphaseInterface.getCPtr(broadphasePairCache), btCollisionConfiguration.getCPtr(collisionConfiguration)), true) { }
//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; }
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); }