Example #1
0
        internal IPhysics GetNullPhysics()
        {
            IGameObject nullGameObject = new NullGameObject();

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

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