Esempio n. 1
0
        internal IPhysics GetNullPhysics()
        {
            IGameObject nullGameObject = new NullGameObject();

            return(new Physics(nullGameObject, new Vector2(0, 0), PhysicsConstants.Instance.GetConstants(nullGameObject.GetType())));
        }
Esempio n. 2
0
        internal IPhysics GetNullPhysics(Vector2 positionOnScreen)
        {
            IGameObject nullGameObject = new NullGameObject();

            return(new Physics(nullGameObject, positionOnScreen, PhysicsConstants.Instance.GetConstants(nullGameObject.GetType())));
        }