Copied the HaxeFlixel FlxPhysSprite and FlxPhysState