Universe.Physics.BulletSPlugin.BSAPIXNA.Initialize C# (CSharp) Method

Initialize() public method

public Initialize ( Vector3 maxPosition, ConfigurationParameters parms, int maxCollisions, CollisionDesc &collisionArray, int maxUpdates, EntityProperties &updateArray ) : BulletWorld
maxPosition Vector3
parms ConfigurationParameters
maxCollisions int
collisionArray CollisionDesc
maxUpdates int
updateArray EntityProperties
return BulletWorld
        public override BulletWorld Initialize(Vector3 maxPosition, ConfigurationParameters parms,
            int maxCollisions, ref CollisionDesc[] collisionArray,
            int maxUpdates, ref EntityProperties[] updateArray
            )
        {
            UpdatedObjects = updateArray;
            UpdatedCollisions = collisionArray;
            /* TODO */
            ConfigurationParameters[] configparms = new ConfigurationParameters[1];
            configparms[0] = parms;
//            Vector3 worldExtent = new Vector3(Constants.RegionSize, Constants.RegionSize, Constants.RegionHeight);
            Vector3 worldExtent = maxPosition;
            m_maxCollisions = maxCollisions;
            m_maxUpdatesPerFrame = maxUpdates;
            specialCollisionObjects = new Dictionary<uint, GhostObject>();

            return new BulletWorldXNA(1, PhysicsScene,
                BSAPIXNA.Initialize2(worldExtent, configparms, maxCollisions, ref collisionArray, maxUpdates,
                    ref updateArray, null));
        }
BSAPIXNA