OpenSim.Region.Physics.BulletDotNETPlugin.BulletDotNETScene.Initialise C# (CSharp) Method

Initialise() public method

public Initialise ( IMesher meshmerizer, IVoxelMesher voxmesh, IConfigSource config ) : void
meshmerizer IMesher
voxmesh IVoxelMesher
config IConfigSource
return void
        public override void Initialise(IMesher meshmerizer, IVoxelMesher voxmesh, IConfigSource config)
        {
            mesher = meshmerizer;
            // m_config = config;
            /*
            if (Environment.OSVersion.Platform == PlatformID.Unix)
            {
                m_log.Fatal("[BulletDotNET]: This configuration is not supported on *nix currently");
                Thread.Sleep(5000);
                Environment.Exit(0);
            }
            */
            m_broadphase = new btAxisSweep3(worldAabbMin, worldAabbMax, 16000);
            m_collisionConfiguration = new btDefaultCollisionConfiguration();
            m_solver = new btSequentialImpulseConstraintSolver();
            m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration);
            m_world = new btDiscreteDynamicsWorld(m_dispatcher, m_broadphase, m_solver, m_collisionConfiguration);
            m_world.setGravity(m_gravity);
            EnableCollisionInterface();

            voxmesher = voxmesh;
        }