Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        public GameObject(b2BodyType physicsBodyType)
        {
            m_networkParts = new NetworkStatePartsHolder();

            BodyType = physicsBodyType;

            Bullet        = false;
            GravityScale  = 1f;
            LinearDamping = 0f;
            Mass          = 1f;
            Density       = 1f;
            Friction      = 0.4f;

            InitializeNetworkParts();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        public GameObject(b2BodyType physicsBodyType)
        {
            m_networkParts = new NetworkStatePartsHolder();

            BodyType = physicsBodyType;

            Bullet = false;
            GravityScale = 1f;
            LinearDamping = 0f;
            Mass = 1f;
            Density = 1f;
            Friction = 0.4f;

            InitializeNetworkParts();
        }